https://puresourcecode.com/dotnet/net-core/using-an-in-memory-repository-keys-will-not-be-persisted-to-storage-asp-net-core-under-iis/
Using an in-memory repository. Keys will not be persisted to storage. – ASP.NET Core under IIS