search

The solution to the problem is to extend the HostOptions.ShutdownTimeout configuration value to be longer than 5s, using the standard ASP.NET Core IOptions configuration system.

Bharat Dwarkani shared on May 13, 2020
image
andrewlock.net
bookmarks
share
visibility18
visibility18 share bookmarks

In .NET core microsoft has added new template worker service for running background jobs.

Bharat Dwarkani shared on Dec 07, 2019
image
youtu.be
bookmarks
share
visibility58
visibility58 share bookmarks

I describe how to run Quartz.NET jobs using an ASP.NET Core hosted service. I show how to create a simple IJob, a custom IJobFactory, and a QuartzHostedService that runs jobs while your application is running. I'll also touch on some of the issues to aware of, namely of using scoped services inside singleton classes.

Bharat Dwarkani shared on Aug 31, 2019
image
andrewlock.net
bookmarks
share
visibility556
visibility556 share bookmarks

Workflow Core is a lightweight workflow engine targeting .NET Standard. Think long-running processes with multiple tasks that need to track state. It supports pluggable persistence and concurrency providers to allow for multi-node clusters.

Bharat Dwarkani shared on Aug 28, 2019
image
github.com
bookmarks
share
visibility43
visibility43 share bookmarks

You've long been able to write Windows Services in .NET and .NET Core, and you could certainly write a vanilla Console App and cobble something together for a long-running headless service as well. However, the idea of a Worker Process, especially a long-running one is a core part of any operating system - Windows, Linux, or Mac.

Bharat Dwarkani shared on Aug 28, 2019
image
hanselman.com
bookmarks
share
visibility47
visibility47 share bookmarks

Learn how to create background services in .NET Core using the Generic Host. The Generic Host provides cross-cutting concerns that you're familiar with in ASP.NET Core, such as dependency injection, logging and configuration. This allows you to build long-running processes for non-HTTP scenarios.

Bharat Dwarkani shared on Aug 19, 2019
image
telerik.com
bookmarks
share
visibility8
visibility8 share bookmarks
add