Class ServiceCollectionExtensions
- Namespace
- GroupeIsa.Neos.Shared.Extensions
- Assembly
- GroupeIsa.Neos.Shared.dll
Represents IServiceCollection extension methods.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
ConfigureInMemoryTemporaryFileStorage(IServiceCollection)
Configures in memory temporary file storage.
public static void ConfigureInMemoryTemporaryFileStorage(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection.
DecorateForTenants<TService>(IServiceCollection, Func<string, TService, IServiceProvider, TService?>)
Decorates service of the type specified in TService using the decorator function.
public static void DecorateForTenants<TService>(this IServiceCollection services, Func<string, TService, IServiceProvider, TService?> decorator) where TService : class
Parameters
servicesIServiceCollectionThe IServiceCollection to add the service to.
decoratorFunc<string, TService, IServiceProvider, TService>The decorator function TService? (string tenantIdentifier, Tservice serviceToDecorate, IServiceProvider serviceProvider).
Type Parameters
TServiceThe type of the service to decorate.