Asp.Net Core 2.2 graceful shutdown mechanism

Dear developers,

I would like you to develop the mechanism to implement a graceful shutdown of Asp.Net Core 2.2 applications.

It should implement the IApplicationLifetime callbacks, and cancellation tokens.

To show it working properly, I would like you to create a Controller which uses a EFCore 2.2 database context and performs a long running operation on it (obviously passing the cancellation token). Alternatively you may do a HttpClient request to download a big quantity of data from somewhere, passing the cancellation token.

The mechanism should properly finalize execution of the database operation or download, then log a message on the console in the ApplicationStopping event, and only quit the application after logging a message on the console in the ApplicationStopped event as well.

To do this cleanly I suggest createing a base controller, derived from ControllerBase, which implements everything needed to work with the cancellation token from IApplicationLifetime. You then inherit your Controller from this base controller.


- Visual Studio 2017/2019 Solution with 1 AspNet Core 2.2 project.


Thanks for bidding.

Compétences : .NET, ASP.NET, Programmation C#, Serveur SQL Microsoft, SQL

en voir plus : asp.net core cancellationtoken, asp net core iis shutdown, applicationstopping, iapplicationlifetime stopapplication, asp.net core graceful shutdown, asp.net core "application is shutting down", useurls asp.net core, ihostedservice, asp.net core 2 react, asp.net core 2.0 spa, asp.net core 2.0 react tutorial, asp.net core 2 tutorial, asp.net core 2.0 mvc, asp.net core 2.0 tutorial, asp.net core 2.0 webpack, asp.net core 2.0 download, asp.net core 2 with vue, asp.net core 2.0 authentication, asp.net core 2.0 identity, asp net core - angular 2 - web api e-commerce app

Concernant l'employeur :
( 19 commentaires ) São Paulo, Brazil

Nº du projet : #19616583

Décerné à:


Good afternoon. Accept the work with pleasure, I just need you to give me more specific indications about what you want to do in the application.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 7 jours
(0 Commentaires)

2 freelance font une offre moyenne de $18 pour ce travail


Hi. Glad to see you I read your job detail carefully and understand what you want. I have been developing .NET web and desktop app for 7 years and I have rich experience in ASP.NET I have developed many websites with Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(4 Commentaires)