Skip to main content

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

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

public static IServiceCollection AddXpoDefaultSession(
    this IServiceCollection serviceCollection,
    bool useDataLayerAsSingleton,
    Func<IServiceProvider, IDataLayer> dataLayerFactory
)

Parameters

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

Returns

Type
IServiceCollection
See Also