DataProtectionDbContextKeys class
Keeps ASP.NET Core Data Protection keys in an Entity Framework Core database, loading the shared key ring during initialization and again as each instance starts.
public static class DataProtectionDbContextKeys
Public Members
| name | description |
|---|---|
| static UseKeysFromDbContext<TContext>(…) | Keeps the Data Protection keys in the DataProtectionKeys table of TContext, as ASP.NET Core's PersistKeysToDbContext does, but reaching the database asynchronously, which the sandbox requires. The table has the same shape, so the application can share its keys with one hosted elsewhere. |