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 |
|---|---|---|
| Microsoft.AspNetCore.Http.IHttpContextAccessor | httpContextAccessor | |
| Microsoft.Extensions.DependencyInjection.IServiceScopeFactory | serviceScopeFactory |
Properties
HttpContextAccessor
Declaration
protected IHttpContextAccessor HttpContextAccessor { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Http.IHttpContextAccessor |
ServiceScopeFactory
Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceScopeFactory |
Methods
CreateScope()
Declaration
public virtual IServiceScope CreateScope()
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceScope |
Implements
ITransientDependency