Table of Contents

Class ServiceCollectionExtensions

Namespace
DotBahn.Common
Assembly
DotBahn.Common.dll

Shared helper for registering DotBahn typed clients.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddDotBahnAuthorization(IServiceCollection, Action<AuthorizationOptions>)

Registers the DotBahn authorization services using the provided configuration.

public static IServiceCollection AddDotBahnAuthorization(this IServiceCollection services, Action<AuthorizationOptions> configuration)

Parameters

services IServiceCollection

The service collection to add to.

configuration Action<AuthorizationOptions>

The action to configure authorization options.

Returns

IServiceCollection

The service collection for chaining.

Exceptions

ArgumentNullException

Thrown when configuration is null.