Thoughts on technology and leadership
-
KestrelMock .Net Core Mock Server
https://github.com/JasonRowe/KestrelMock https://www.nuget.org/packages/KestrelMock There are many powerful mocking frameworks available why build another one? Sure frameworks like WireMock and MounteBank have a bunch of fancy features but who really needs all that. Seriously though sometimes all you need is a response based on URL and post data ridiculously fast. Also a Kestrel mock HTTP server can […]
-
ASP.NET Core Problem Details examples
In versions 2.1 and 2.2, ASP.NET Core added a feature called “Problem Details” which will help you standardize error messages in API controllers. In 2.2, file new project enables “Problem Details” by default for errors thrown from controllers using the “[ApiController]” attribute. Also with the help from a nuget package Hellang.Middleware.ProblemDetails you can add these […]
-
Debug .Net Memory Issues with WinDbg
Notes on debugging windows app with WinDbg. Install Windbg Use the Windows 10 SDK and install debugging tools Create dump file via task manager Setup symbols in WinDbg load sos Run to dump out all .net objects in a statistical fashion To dig in more use this article
-
RabbitMQ Client Connection Issues
If you suspect issues with your RabbitMQ client you can test out connectivity problems using ToxiProxy. Once ToxiProxy server is installed and running use the CLI to setup the proxy. The following command creates a local endpoint ‘localhost:5670’ which will proxy to ‘rabbitmq:5672’. With the proxy setup, you can configure your consumer to use ToxiProxy […]
-
Common Docker Stuff
The following is a list of Docker commands I use. These commands are used on windows 10 running Linux containers. Connectivity Tests Frequently I do quick tests to check permissions or connectivity to a service or NFS share from a container. I do this by running a busybox container to perform a simple action. The […]
-
C# 7.0 ref return values
A friend at work sent me this sarcastic message today “yoooooooo this C# 7.0 feature will SHOCK you”. After his code snippet and explanation I was thinking to myself, why oh why would they put something like this in C# 7. As we dug in a bit things became more clear but at first I […]