About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (21)
- Development (217)
- Security (19)
- Test (32)
- Tooling (175)
- Uncategorized (168)
Most used tags
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
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
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 Code, concurrency, database, deadlock, lock, nservicebus, xunit
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
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 Code, codefirst, EF, Entity Framework, integration test, integration tests, unittest
Leave a comment