Class AmbientDataContextAmbientScopeProvider<T>
Inheritance
object
AmbientDataContextAmbientScopeProvider<T>
Implements
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Threading
Assembly: Volo.Abp.Threading.dll
Syntax
public class AmbientDataContextAmbientScopeProvider<T> : IAmbientScopeProvider<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
AmbientDataContextAmbientScopeProvider(IAmbientDataContext)
Declaration
public AmbientDataContextAmbientScopeProvider(IAmbientDataContext dataContext)
Parameters
| Type | Name | Description |
|---|---|---|
| IAmbientDataContext | dataContext |
Properties
Logger
Declaration
public ILogger<AmbientDataContextAmbientScopeProvider<T>> Logger { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Logging.ILogger<TCategoryName><AmbientDataContextAmbientScopeProvider<T>> |
Methods
BeginScope(string, T)
Declaration
public IDisposable BeginScope(string contextKey, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | contextKey | |
| T | value |
Returns
| Type | Description |
|---|---|
| System.IDisposable |
GetValue(string)
Declaration
public T GetValue(string contextKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | contextKey |
Returns
| Type | Description |
|---|---|
| T |