Class RedisGovernanceServiceCollectionExtensions
Dependency injection registration for the Redis governance provider.
Inherited Members
Namespace: ModularityKit.Mutator.Governance.Redis
Assembly: ModularityKit.Mutator.Governance.Redis.dll
Syntax
public static class RedisGovernanceServiceCollectionExtensions
Methods
| Edit this page View SourceAddRedisGovernanceStore(IServiceCollection, IConnectionMultiplexer, Action<RedisMutationRequestStoreOptions>?)
Registers Redis-backed governance request storage and query services.
Declaration
public static IServiceCollection AddRedisGovernanceStore(this IServiceCollection services, IConnectionMultiplexer connectionMultiplexer, Action<RedisMutationRequestStoreOptions>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection to configure. |
| IConnectionMultiplexer | connectionMultiplexer | The Redis connection multiplexer used by the provider. |
| Action<RedisMutationRequestStoreOptions> | configure | An optional callback for configuring provider options. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The same service collection for chaining. |