Table of Contents

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

services IServiceCollection

The 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

services IServiceCollection

The IServiceCollection to add the service to.

decorator Func<string, TService, IServiceProvider, TService>

The decorator function TService? (string tenantIdentifier, Tservice serviceToDecorate, IServiceProvider serviceProvider).

Type Parameters

TService

The type of the service to decorate.