Skip to main content
Table of Contents

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

services IServiceCollection

The service collection.

Returns

IServiceCollection

The same service collection for chaining.

Examples

The four stores it sweeps must already be registered — this call adds none of them:

services.AddTenantMembershipStore<DirectoryDbContext>();
services.AddApiKeyStore<DirectoryDbContext>();
services.AddSettingStore<DirectoryDbContext>();
services.AddStrataraErasure();