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

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

public static IServiceCollection AddXpoCustomSession<TSession>(
    this IServiceCollection serviceCollection,
    bool useDataLayerAsSingleton,
    Func<IServiceProvider, IDataLayer> dataLayerFactory
)
    where TSession : Session

Parameters

Name Type
serviceCollection IServiceCollection
useDataLayerAsSingleton Boolean
dataLayerFactory Func<IServiceProvider, IDataLayer>

Type Parameters

Name
TSession

Returns

Type
IServiceCollection
See Also