Answer the question
In order to leave comments, you need to log in
What is the behavior mechanism of AspNet Core in IIS on reboot?
Given IIS on Windows 10, it hosts a simple WebAPI test site written in Asp Net Core.
Controller method:
[HttpGet()]
[Route("api/exchange/param/{param1}")]
public Answer Param(string param, string param1)
{
var result = new Answer
{
Id = ID,
Time = DateTime.Now,
Value = rnd
};
return result;
}
private static long _id;
private static long ID
{
get
{
_id++;
return _id;
}
}
{
"id": 163688,
"time": "2020-02-20T16:42:10.4914933+02:00",
"value": 728.992299050555
}
Answer the question
In order to leave comments, you need to log in
Understood in the most interesting behavior.
If the computer was in "Sleep" before the "Shutdown" is done, the state of the processes running under IIS is saved.
If "Reboot" is performed, then everything is reloaded as expected.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question