Class HttpContextServiceScopeFactory
Inheritance
System.Object
HttpContextServiceScopeFactory
Implements
ITransientDependency
Namespace: Volo.Abp.AspNetCore.DependencyInjection
Assembly: Volo.Abp.AspNetCore.dll
Syntax
public class HttpContextServiceScopeFactory : IHybridServiceScopeFactory, ITransientDependency
Constructors
HttpContextServiceScopeFactory(IHttpContextAccessor, IServiceScopeFactory)
Declaration
public HttpContextServiceScopeFactory(IHttpContextAccessor httpContextAccessor, IServiceScopeFactory serviceScopeFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpContextAccessor | httpContextAccessor | |
| IServiceScopeFactory | serviceScopeFactory |
Properties
HttpContextAccessor
Declaration
protected IHttpContextAccessor HttpContextAccessor { get; }
Property Value
| Type | Description |
|---|---|
| IHttpContextAccessor |
ServiceScopeFactory
Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
| Type | Description |
|---|---|
| IServiceScopeFactory |
Methods
CreateScope()
Declaration
public virtual IServiceScope CreateScope()
Returns
| Type | Description |
|---|---|
| IServiceScope |
Implements
ITransientDependency