Search Results for

    Show / Hide Table of Contents
    View Source

    Class ScopeContext

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Scoping
    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
    Type Description
    Guid

    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 Description
    T
    Type Parameters
    Name Description
    T
    View Source

    GetEnlisted<T>(String)

    Declaration
    public T GetEnlisted<T>(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    View Source

    ScopeExit(Boolean)

    Declaration
    public void ScopeExit(bool completed)
    Parameters
    Type Name Description
    System.Boolean completed
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • CreatedThreadId
      • InstanceId
    • Methods
      • Enlist(String, Action<Boolean>, Int32)
      • Enlist<T>(String, Nullable<Func<T>>, Nullable<Action<Boolean, T>>, Int32)
      • GetEnlisted<T>(String)
      • ScopeExit(Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX