Table of Contents

Class FileTicketStoreExtension

Namespace
Arc4u.OAuth2.TicketStore
Assembly
Arc4u.OAuth2.AspNetCore.Authentication.dll

Registers the FileTicketStore.

public static class FileTicketStoreExtension
Inheritance
FileTicketStoreExtension
Inherited Members

Methods

AddFileTicketStore(IServiceCollection, IConfiguration, string)

Registers the FileTicketStore with the options of a configuration section. Nothing is registered when the section does not exist.

public static void AddFileTicketStore(this IServiceCollection services, IConfiguration configuration, string sectionName = "AuthenticationFileTicketStore")

Parameters

services IServiceCollection

The service collection.

configuration IConfiguration

The configuration.

sectionName string

The section holding the FileTicketStoreOptions. The default is AuthenticationFileTicketStore.

AddFileTicketStore(IServiceCollection, Action<FileTicketStoreOptions>)

Registers the FileTicketStoreOptions and the FileTicketStore as ITicketStore, unless another ticket store is already registered. The directory is created when it does not exist.

public static void AddFileTicketStore(this IServiceCollection services, Action<FileTicketStoreOptions> action)

Parameters

services IServiceCollection

The service collection.

action Action<FileTicketStoreOptions>

The action that configures the options.

Exceptions

ArgumentNullException

StorePath is null.