Will IIS recycle the main asp.net process?

I need to run multi-year background tasks in my main asp.net application. I know about Azure Webjobs and other technologies, but I would prefer to keep the solution simple and perform these tasks directly in the main asp.net process. I am using Kestrel and the application is hosted in IIS.

I understand that IIS will sometimes process the IIS process. Will it also recycle the main asp.net process?

+7
source share
3 answers

Asp.Net Core <2.2

Asp.net Core dotnet.exe IIS. , . IIS Asp.net core Asp.net core (dotnet.exe) AspNetCoreModule.

, , IIS asp.net

Asp.Net Core> = 2.2

Asp.Net 2,2 in-process IIS out-of-process , . , , dotnet. IIS Asp.net Core

+1

"IApplicationLifetime applicationLifetime", aspnet Golbal.aspx

iis , "ApplicationStopping"  .

SO https://github.com/aspnet/KestrelHttpServer/issues/1040#issuecomment-267506588

0

, . IIS w3wp.exe.

ASP.NET Kestrel, IIS - - .

-1

Source: https://habr.com/ru/post/1663908/


All Articles