View Source
Class ScopeContext
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ScopeContext : IScopeContext, IInstanceIdentifiable
Properties
View Source
CreatedThreadId
Declaration
public int CreatedThreadId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
InstanceId
Declaration
public Guid InstanceId { get; }
Property Value
Methods
View Source
Enlist(String, Action<Boolean>, Int32)
Declaration
public void Enlist(string key, Action<bool> action, int priority = 100)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Action<System.Boolean> |
action |
|
System.Int32 |
priority |
|
View Source
Enlist<T>(String, Nullable<Func<T>>, Nullable<Action<Boolean, T>>, Int32)
Declaration
public T Enlist<T>(string key, Func<T>? creator, Action<bool, T>? action = null, int priority = 100)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Nullable<Func<T>> |
creator |
|
System.Nullable<Action<System.Boolean, T>> |
action |
|
System.Int32 |
priority |
|
Returns
Type Parameters
View Source
GetEnlisted<T>(String)
Declaration
public T GetEnlisted<T>(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type Parameters
View Source
ScopeExit(Boolean)
Declaration
public void ScopeExit(bool completed)
Parameters
Type |
Name |
Description |
System.Boolean |
completed |
|