Contents tagged with c#
-
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. …
-
Adding a summary to Orchard blog posts - refining the code
After putting together my post yesterday about adding a Summary field to blog posts, Sébastien Ros dropped a comment pointing out a tidier way to access the Summary property, giving this:
post. …
-
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 …
-
Copying/Moving a file in Azure blob storage
I was looking through the posts on weblogs.asp.net a few days ago and spotted this one, Corrupted File when using DownloadToStream in Azure blob, in which the author does what I do and realises …
-
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 …
-
Using MiniProfiler with a hybrid asp.net Web Forms / MVC application - Part 3
Previous parts:
Part 1 - Installing MiniProfiler and showing the UI
Part 2 - Hooking MiniProfiler into an MVC controller
Controlling when MiniProfiler is visible
More often than not, you won' …
-
Using MiniProfiler with a hybrid asp.net Web Forms / MVC application - Part 2
Part 1 covered creating a hybrid ASP.NET WebForms / MVC project, adding MiniProfiler to the project, showing MiniProfiler output on the WebForms page and adding an event to the MiniProfiler output. …