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 (169)
Category Archives: Development
Azurewebsites backup with webjobs
We have some low traffic websites hosted in azure. Backups are important to us, but only available on the Standard web hosting plan. So we created a webjob to do it. Following Eduardo Laureano‘s post the plumbing was soon done. … Continue reading
HTML5 and CSS3 for IE8
IE8 and lower are not playing nice with HTML5 pages. Also CSS3 wasn’t invented when it released. To get the best result on IE8 with the least effort just add some scripts. Not pixel perfect, but good enough for the … Continue reading
Readable code and compiler optimization
Most comments on my code during reviews are about optimization. Tools like Resharper suggest code changes for cleaner code and optimization. But what about readability? Are most of today’s compilers smart enough to optimize the code? The sample code below … 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