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

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

public static IServiceCollection AddXpoDefaultSession(
    this IServiceCollection serviceCollection,
    bool useObjectLayerAsSingleton,
    Func<IServiceProvider, IObjectLayer> objectLayerFactory
)
<ExtensionAttribute>
Public Shared Function AddXpoDefaultSession(
    serviceCollection As IServiceCollection,
    useObjectLayerAsSingleton As Boolean,
    objectLayerFactory As Func(Of IServiceProvider, IObjectLayer)
) As IServiceCollection

Parameters

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

Returns

Type
IServiceCollection
See Also