Skip to main content

XpoServiceCollectionExtensions.AddXpoCustomSession<TSession>(IServiceCollection, Boolean, Action<DataLayerOptionsBuilder>) Method

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

public static IServiceCollection AddXpoCustomSession<TSession>(
    this IServiceCollection serviceCollection,
    bool useDataLayerAsSingleton,
    Action<DataLayerOptionsBuilder> dataLayerOptionsBuildAction
)
    where TSession : Session

Parameters

Name Type
serviceCollection IServiceCollection
useDataLayerAsSingleton Boolean
dataLayerOptionsBuildAction Action<DataLayerOptionsBuilder>

Type Parameters

Name
TSession

Returns

Type
IServiceCollection
See Also