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

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

public static IServiceCollection AddXpoDefaultSession(
    this IServiceCollection serviceCollection,
    bool useDataLayerAsSingleton,
    Func<IServiceProvider, IDataLayer> dataLayerFactory
)
<ExtensionAttribute>
Public Shared Function AddXpoDefaultSession(
    serviceCollection As IServiceCollection,
    useDataLayerAsSingleton As Boolean,
    dataLayerFactory As Func(Of IServiceProvider, IDataLayer)
) As IServiceCollection

Parameters

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

Returns

Type
IServiceCollection
See Also