Tag Archives: Code

WCF on demand protocol switching POC

WCF offers the ABC (address, binding, contract) to development and operations but what about the client? I’ve created a POC to let the client change the Address and Binding used for hosting a service. Source at the end of this … Continue reading

Posted in Development | Tagged , | Leave a comment

Get Spreadsheetlight working

Spreadsheetlight is a dotnet library for creating Excel documents with all it’s wonderful features. The Spreadsheetlight nuget has no dependencies on nuget packages, but does have a dependency on Open XML SDK 2.0. This can be installed with the DocumentFormat.OpenXml … Continue reading

Posted in Development | Tagged , , , , | 18 Comments

Solve concurrency database issues in nServicebus

When we configure nServicebus to run with multiple thread (MaximumConcurrencyLevel) sometimes duplicate records are inserted. This happens when the endpoint has been down for maintenance and the queue has filled up with messages. Repro This is not ideal, but can … Continue reading

Posted in Development | Tagged , , , , , , | Leave a comment

Structuremap interferes with nServicebus EndpointName configuration

When creating a nServiceBus host with an EndpointName in the configuration be warned for this structuremap interference. See the repro code below of a bug we recently fixed. The messages and handlers are left out of the sample for simplicity. … Continue reading

Posted in Development | Tagged , , | Leave a comment

Integration Test with Entity Framework Codefirst

Our database is developed using Entity Framework Codefirst. Everything in code. Enabled migrations to update existing environments as we roll out. The code passed all the unittests, but it didn’t feel right. Time for an integration test. This brought me … Continue reading

Posted in Development | Tagged , , , , , , | Leave a comment