Class ErasureServiceCollectionExtensions
- Namespace
- Stratara.Infrastructure.DependencyInjection
- Assembly
- Stratara.Infrastructure.dll
Registers the composed erasure operation.
public static class ErasureServiceCollectionExtensions
- Inheritance
-
ErasureServiceCollectionExtensions
- Inherited Members
Methods
AddStrataraErasure(IServiceCollection)
Registers ISubjectEraser, which composes the membership, API-key, setting and key-material sweeps into one operation. The four stores it sweeps must be registered separately — this call adds no store of its own.
public static IServiceCollection AddStrataraErasure(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection.
Returns
- IServiceCollection
The same service collection for chaining.
Examples
The stores it sweeps must already be registered — this call adds none of them. The setting store needs no declared settings; without a catalog it sweeps what was stored all the same. The key store comes from the security plane's registration:
services.AddTenantMembershipStore<DirectoryDbContext>();
services.AddApiKeyStore<DirectoryDbContext>();
services.AddSettingStore<DirectoryDbContext>();
services.AddStrataraErasure();