XpoServiceCollectionExtensions.AddXpoCustomSession<TSession>(IServiceCollection, Boolean, Action<DataLayerOptionsBuilder>) Method
In This Article
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public static IServiceCollection AddXpoCustomSession<TSession>(
this IServiceCollection serviceCollection,
bool useDataLayerAsSingleton,
Action<DataLayerOptionsBuilder> dataLayerOptionsBuildAction
)
where TSession : Session
#Parameters
Name | Type |
---|---|
service |
IService |
use |
Boolean |
data |
Action<Data |
#Type Parameters
Name |
---|
TSession |
#Returns
Type |
---|
IService |
See Also