In the past weeks we have upgraded our ASP.NET Core 2.0 project to 2.1. The main reason for the upgrade is using the latest signalr capabilities and hosted services. The issues we had are related to the features we use. In our case the upgrade encountered some minor issues. In this blog post I’ll show what we had to change and give some tips on how to upgrade.
Knowing the differences when you run your application in a Development environment
When building ASP.NET Core 2 web applications, most projects are initializing Kestrel with the CreateDefaultBuilder. If you use this extension method to configure Kestrel, it is good to know what is set and what differs when you are running a Development configuration or any other configuration. In practice there are two differences. In this blog I’ll explain the two differences.
Run background processes with the IHostedService and how to inject your services with dependency injection
Many services need background processing. The ASP.NET Core 2.X IHostedService interface gives you an easy implementation skeleton to implement background processes. The Hosted Services are registered in the dependency injection at startup and started automatically. You do not have to do the pluming to get them started at startup. On shutdown you can implement a graceful shutdown. When running background processes there a few pitfalls to avoid. In this blog I’ll introduce the IHostedService and how to avoid common memory leaks when implementing the hosted service.
Continue reading “ASP.NET Core background processing with IHostedService”
Putting your tools in the middle of the conversation
ChatOps is an accelerator for the implementation of DevOps. DevOps is all about enabling the team to get feature s into production quickly. This is done by unifying Dev and Ops and advocate automation and monitoring at all steps of software construction. ChatOps is a way of combining and centralizing all the tooling for your team into one shared messaging tool. By centralizing access to your systems to one central messaging tool, you increase transparency, collaboration and productivity of you team.
Find the root cause of what really happened to you disposable object.
Working with ASP.NET core I have seen this error multiple times and can be hard to debug. The error can have multiple root causes. It can be a real pain to find the cause and it is sometimes fixed by only taking care of the symptoms. By finding the root cause, you can take the appropriate action in your code.
Tips and tricks Inline Powershell task VSTS, combine webhooks, rest api calls to get more out of your VSTS/TFS build and release pipelines
Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Let your build work for you Continue reading “Let your build work for you, shorten the feedback loop”
Tips and tricks Inline Powershell task VSTS, call the VSTS/TFS Rest APIs from Powershell
Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: VSTS Rest API Continue reading “VSTS Rest API from Inline Powershell”