Contents tagged with c#
-
Setting up OpServer, the awesome monitoring solution from Stack Exchange
Monitoring. You know it's important, I know it's important, Everyone knows it's important, but,... it's often not given the focus that it so justly deserves.
If you're in a position where you don' …
-
Using Azure App Services to host a holding page for a site that's not available
In the first post of this series I put together a .NET Core application that uses Azure Storage (in table form) to keep records of "call me back" requests from customers, so that when the main site …
-
Using Azure to provide a holding page for a site that's not available
One of the fantastic things about Azure is how quickly you can spin up, and down, services as and when you need them. In a world where not everything's been migrated to the cloud yet this can be …
-
Running an ASP.NET project yellow screens with "Could not find a part of the path 'D:\Path\To\Project\bin\roslyn\csc.exe'"
I recently had to pull a project onto a different PC and for some reason even after running a NuGet package restore and building the solution, running the project failed with an error as the roslyn …
-
C# 7.1 - Async Main has been around a while now
C# 7.1 has been out in the wild for quite a while (since August 2017 according to Wikipedia!) yet I still see a lot of people on Stackoverflow asking questions where they're hitting the .Result …
-
Using C#7 Local Functions
After I wrote a post recently that covered the Tuple C# 7.0 language feature it got me thinking about all the other language enhancements that have been added in C# 7.0 and its three subsequent …
-
Using the C#7 Tuple language feature to eliminate an anonymous type
It might be a bit "old news" now, given that C# 7.0 was released in March 2017 (according to Wikipedia, so it must be true!) but after I answered a question on Stackoverflow earlier today I was …
-
Calling ASP.NET Web API end-points for testing purposes with Refit in .NET Core
Back in August I wrote Calling ASP.NET Web API end-points for testing purposes where I described a "bare metal" approach to calling Web Api methods using HttpClient by creating a wrapper that could …
-
Using the #if pre-processor directive to do different things for x64 builds
I'd just about finished writing an answer for a question on Stack Overflow when the poster deleted it, so I thought I'd drop the answer here instead.
The question asked was essentially:
How can I …
-
Wrapping ConcurrentQueue<T> to make it eventful
One of the projects I inherited has been merrily sat on its server bubbling away and doing what it needs to do since before I joined the company until a few days ago when another service on the …