builder.Services.AddDataProtection().SetApplicationName($"my-app-{builder.Environment.EnvironmentName}") .PersistKeysToFileSystem(new DirectoryInfo($@"{builder.Environment.ContentRootPath}\keys"));