Contents tagged with .net
-
A basic MSMQ backed WCF server and client
After my recent post, MSMQ messages ending up in the "Transactional dead-letter messages" System Queue, I decided to build up my understanding of how MSMQ backed WCF services work by putting together …
-
MSMQ messages ending up in the "Transactional dead-letter messages" System Queue
I've been working with a solution recently that uses MSMQ to, well, pass messages between components running on different machines. It's been implemented using WCF as the abstraction layer, so …
-
Using is instead of == to check whether an object is a null reference
A tweet yesterday by Bertrand Le Roy:
Something in C# I learned today: `if (a is null)` is not just prettier, it's also more robust than `if (a == null)`. thx @MadsTorgersen
— Bertrand Le Roy (@ …
-
Link Dump
Another collection of odds and ends, of dubious use to anyone but me, but perhaps of interest!
Proper Dependency injection in Azure Functions on function level with scoped services!
A blog post …
-
Using the Azure Storage Emulator
As I'm gearing up to continue my series of posts on the subject of migrating an application to Azure, one of the things that occured to me was that the existing implementation has unit tests. …
-
CsvHelper - a tidy package for working with CSV content
I needed to transform some CSV data recently and my Excel skills are somewhat lacking when it comes to the funky stuff, so I had a hunt around for a solution I could use to run up a quick and dirty …
-
Deserializing awkward JSON using Json.NET
Aside: I'm never quite sure whether every instance of a word which has a Z in it, that sounds like it could have an S in it, should have an S in it when it's en-gb instead of en-us. In this instance …
-
Writing a custom Condition for Orchard - checking the tags on a page
I've previously written about how I've added a standardised warning banner to certain pages in Orchard, so that I can always show something like the text in the image below when I've written a post …
-
Ensuring an action filter is only executed once per request
If you have a view that's composed of the result of more than one action, for example by having something like:
@Html.Action("PartialContentForHome", "Home")
in one view, to pull in the content for …
-
Trailing slashes in Orchard
Up until about 20 minutes ago, viewing this blog via http://robertwray.co.uk/blog would work, but viewing it via http://robertwray.co.uk/blog/ wouldn't. Logical, no?
The solution is to add a …