XpoServiceCollectionExtensions.AddXpoCustomSession<TSession>(IServiceCollection, Boolean, Func<IServiceProvider, IObjectLayer>) Method

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

public static IServiceCollection AddXpoCustomSession<TSession>(
    this IServiceCollection serviceCollection,
    bool useObjectLayerAsSingleton,
    Func<IServiceProvider, IObjectLayer> objectLayerFactory
)
    where TSession : Session

Parameters

Name Type
serviceCollection IServiceCollection
useObjectLayerAsSingleton Boolean
objectLayerFactory Func<IServiceProvider, IObjectLayer>

Type Parameters

Name
TSession

Returns

Type
IServiceCollection
See Also