Table of Contents

AddAuthorizationResponseHandler Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Authentication
Assemblies
Cuemon.Extensions.AspNetCore.Authentication.dll
Source
src/Cuemon.Extensions.AspNetCore.Authentication/ServiceCollectionExtensions.cs

AddAuthorizationResponseHandler(IServiceCollection, Action<AuthorizationResponseHandlerOptions>)

Adds a AuthorizationResponseHandler service to the specified IServiceCollection.

public static IServiceCollection AddAuthorizationResponseHandler(this IServiceCollection services, Action<AuthorizationResponseHandlerOptions> setup = null)

Parameters

services IServiceCollection

The IServiceCollection to extend.

setup Action<AuthorizationResponseHandlerOptions>

The AuthorizationResponseHandlerOptions which may be configured.

Returns

IServiceCollection

A reference to services so that additional configuration calls can be chained.

Exceptions

ArgumentNullException

services cannot be null.

ArgumentException

setup failed to configure an instance of AuthorizationResponseHandlerOptions in a valid state.