Class ApplicationAbstractionsServiceCollectionExtensions
- Namespace
- GroupeIsa.Neos.Application.Extensions
- Assembly
- GroupeIsa.Neos.Application.Abstractions.dll
Represents extension methods for the IServiceCollection interface.
public static class ApplicationAbstractionsServiceCollectionExtensions
- Inheritance
-
ApplicationAbstractionsServiceCollectionExtensions
- Inherited Members
Methods
AddTenantDatabaseMigrationInterceptor<TInterceptor>(IServiceCollection)
Registers a ITenantDatabaseMigrationInterceptor implementation that will be used during migrations to customize their behavior.
public static void AddTenantDatabaseMigrationInterceptor<TInterceptor>(this IServiceCollection services) where TInterceptor : class, ITenantDatabaseMigrationInterceptor
Parameters
servicesIServiceCollectionService collection.
Type Parameters
TInterceptorImplemenation of ITenantDatabaseMigrationInterceptor.
Remarks
Use IRunOnceTenantDatabaseMigrationInterceptor for interceptors that should be executed only once per tenant while keeping the same registration method.
Standard tenant migration interceptors are executed after each successful tenant migration.
AddTenantResolvedInterceptor<TInterceptor>(IServiceCollection)
Registers a ITenantResolvedInterceptor implementation that will be used after tenant resolution.
public static void AddTenantResolvedInterceptor<TInterceptor>(this IServiceCollection services) where TInterceptor : class, ITenantResolvedInterceptor
Parameters
servicesIServiceCollectionService collection.
Type Parameters
TInterceptorImplemenation of ITenantResolvedInterceptor.
AddUserAuthenticatedInterceptor<TInterceptor>(IServiceCollection)
Registers a IUserAuthenticatedInterceptor implementation that will be used after user authentication.
public static void AddUserAuthenticatedInterceptor<TInterceptor>(this IServiceCollection services) where TInterceptor : class, IUserAuthenticatedInterceptor
Parameters
servicesIServiceCollectionService collection.
Type Parameters
TInterceptorImplemenation of IUserAuthenticatedInterceptor.