Table of Contents

Class OrphanedAccessGovernanceBuilderExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Excalibur.A3.Governance.dll

Extension methods for registering orphaned access detection services on IGovernanceBuilder.

public static class OrphanedAccessGovernanceBuilderExtensions
Inheritance
OrphanedAccessGovernanceBuilderExtensions
Inherited Members

Methods

AddOrphanedAccessDetection(IGovernanceBuilder, IConfiguration)

Adds orphaned access detection services using an IConfiguration section.

[RequiresUnreferencedCode("Binding configuration to the options type reflects over its members, which trimming may remove. Configure the options in code instead of binding IConfiguration.")]
[RequiresDynamicCode("Binding configuration to the options type can require runtime code generation, which native AOT does not support. Configure the options in code instead of binding IConfiguration.")]
public static IGovernanceBuilder AddOrphanedAccessDetection(this IGovernanceBuilder builder, IConfiguration configuration)

Parameters

builder IGovernanceBuilder

The governance builder.

configuration IConfiguration

The configuration section to bind to OrphanedAccessOptions.

Returns

IGovernanceBuilder

The IGovernanceBuilder for fluent chaining.

AddOrphanedAccessDetection(IGovernanceBuilder, Action<OrphanedAccessOptions>?)

Adds orphaned access detection services to the governance builder.

public static IGovernanceBuilder AddOrphanedAccessDetection(this IGovernanceBuilder builder, Action<OrphanedAccessOptions>? configure = null)

Parameters

builder IGovernanceBuilder

The governance builder.

configure Action<OrphanedAccessOptions>

Optional delegate to configure OrphanedAccessOptions.

Returns

IGovernanceBuilder

The IGovernanceBuilder for fluent chaining.

Remarks

Consumers MUST register an IUserStatusProvider implementation before calling this method. No default implementation is provided.

services.AddExcaliburA3Core()
    .AddGovernance(g => g
        .AddOrphanedAccessDetection(opts =>
        {
            opts.ScanIntervalHours = 12;
            opts.AutoRevokeDeparted = true;
        }));