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
servicesIServiceCollectionThe service collection.
configurationIConfigurationThe configuration.
sectionNamestringThe 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
servicesIServiceCollectionThe service collection.
actionAction<FileTicketStoreOptions>The action that configures the options.