ASP.NET Core background processing

Run background processes with the IHostedService and how to inject your services with dependency injection

Advertisements

Many services need background processing. The ASP.NET Core 2 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”

Let your build work for you, shorten the feedback loop

Tips and tricks Inline Powershell task VSTS

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”

VSTS Rest API from Inline Powershell

Tips and tricks Inline Powershell task VSTS

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”

Navigate VSTS project as filesystem from Inline Powershell

Tips and tricks Inline Powershell task VSTS

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: Navigate VSTS as filesystem Continue reading “Navigate VSTS project as filesystem from Inline Powershell”

Install a Powershell Module Inline Powershell VSTS

Tips and tricks Inline Powershell task VSTS

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: Install Powershell Module Continue reading “Install a Powershell Module Inline Powershell VSTS”

Download a file from Inline Powershell

Tips and tricks Inline Powershell task VSTS

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: Download a file Continue reading “Download a file from Inline Powershell”

Call a WebHook from Inline Powershell

Tips and tricks Inline Powershell task VSTS

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: Call WebHooks from your build pipeline Continue reading “Call a WebHook from Inline Powershell”