Search Results for

    Show / Hide Table of Contents
    View Source

    Class CoreScope

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Scoping
    Assembly: Umbraco.Core.dll
    Syntax
    public class CoreScope : ICoreScope, IInstanceIdentifiable

    Constructors

    View Source

    CoreScope(IDistributedLockingMechanismFactory, ILoggerFactory, FileSystems, IEventAggregator, RepositoryCacheMode, Nullable<Boolean>, IScopedNotificationPublisher)

    Declaration
    protected CoreScope(IDistributedLockingMechanismFactory distributedLockingMechanismFactory, ILoggerFactory loggerFactory, FileSystems scopedFileSystem, IEventAggregator eventAggregator, RepositoryCacheMode repositoryCacheMode = RepositoryCacheMode.Unspecified, bool? shouldScopeFileSystems = null, IScopedNotificationPublisher notificationPublisher = null)
    Parameters
    Type Name Description
    IDistributedLockingMechanismFactory distributedLockingMechanismFactory
    ILoggerFactory loggerFactory
    FileSystems scopedFileSystem
    IEventAggregator eventAggregator
    RepositoryCacheMode repositoryCacheMode
    System.Nullable<System.Boolean> shouldScopeFileSystems
    IScopedNotificationPublisher notificationPublisher
    View Source

    CoreScope(ICoreScope, IDistributedLockingMechanismFactory, ILoggerFactory, FileSystems, IEventAggregator, RepositoryCacheMode, Nullable<Boolean>, IScopedNotificationPublisher)

    Declaration
    protected CoreScope(ICoreScope parentScope, IDistributedLockingMechanismFactory distributedLockingMechanismFactory, ILoggerFactory loggerFactory, FileSystems scopedFileSystem, IEventAggregator eventAggregator, RepositoryCacheMode repositoryCacheMode = RepositoryCacheMode.Unspecified, bool? shouldScopeFileSystems = null, IScopedNotificationPublisher notificationPublisher = null)
    Parameters
    Type Name Description
    ICoreScope parentScope
    IDistributedLockingMechanismFactory distributedLockingMechanismFactory
    ILoggerFactory loggerFactory
    FileSystems scopedFileSystem
    IEventAggregator eventAggregator
    RepositoryCacheMode repositoryCacheMode
    System.Nullable<System.Boolean> shouldScopeFileSystems
    IScopedNotificationPublisher notificationPublisher

    Fields

    View Source

    Completed

    Declaration
    protected bool? Completed
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    Properties

    View Source

    CreatedThreadId

    Declaration
    public int CreatedThreadId { get; }
    Property Value
    Type Description
    System.Int32
    View Source

    Depth

    Declaration
    public int Depth { get; }
    Property Value
    Type Description
    System.Int32
    View Source

    InstanceId

    Declaration
    public Guid InstanceId { get; }
    Property Value
    Type Description
    Guid
    View Source

    IsolatedCaches

    Declaration
    public IsolatedCaches IsolatedCaches { get; }
    Property Value
    Type Description
    IsolatedCaches
    View Source

    Locks

    Declaration
    public ILockingMechanism Locks { get; }
    Property Value
    Type Description
    ILockingMechanism
    View Source

    Notifications

    Declaration
    public IScopedNotificationPublisher Notifications { get; }
    Property Value
    Type Description
    IScopedNotificationPublisher
    View Source

    RepositoryCacheMode

    Declaration
    public RepositoryCacheMode RepositoryCacheMode { get; }
    Property Value
    Type Description
    RepositoryCacheMode
    View Source

    ScopedFileSystems

    Declaration
    public bool ScopedFileSystems { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    View Source

    ChildCompleted(Nullable<Boolean>)

    Declaration
    protected void ChildCompleted(bool? completed)
    Parameters
    Type Name Description
    System.Nullable<System.Boolean> completed
    View Source

    Complete()

    Completes a scope

    Declaration
    public bool Complete()
    Returns
    Type Description
    System.Boolean

    A value indicating whether the scope is completed or not.

    View Source

    Dispose()

    Declaration
    public virtual void Dispose()
    View Source

    EagerReadLock(Int32[])

    Declaration
    public void EagerReadLock(params int[] lockIds)
    Parameters
    Type Name Description
    System.Int32[] lockIds
    View Source

    EagerReadLock(TimeSpan, Int32)

    Declaration
    public void EagerReadLock(TimeSpan timeout, int lockId)
    Parameters
    Type Name Description
    TimeSpan timeout
    System.Int32 lockId
    View Source

    EagerWriteLock(Int32[])

    Declaration
    public void EagerWriteLock(params int[] lockIds)
    Parameters
    Type Name Description
    System.Int32[] lockIds
    View Source

    EagerWriteLock(TimeSpan, Int32)

    Declaration
    public void EagerWriteLock(TimeSpan timeout, int lockId)
    Parameters
    Type Name Description
    TimeSpan timeout
    System.Int32 lockId
    View Source

    HandleScopedFileSystems()

    Declaration
    protected void HandleScopedFileSystems()
    View Source

    HandleScopedNotifications()

    Declaration
    protected void HandleScopedNotifications()
    View Source

    ReadLock(Int32[])

    Declaration
    public void ReadLock(params int[] lockIds)
    Parameters
    Type Name Description
    System.Int32[] lockIds
    View Source

    ReadLock(TimeSpan, Int32)

    Declaration
    public void ReadLock(TimeSpan timeout, int lockId)
    Parameters
    Type Name Description
    TimeSpan timeout
    System.Int32 lockId
    View Source

    SetParentScope(ICoreScope)

    Declaration
    protected void SetParentScope(ICoreScope coreScope)
    Parameters
    Type Name Description
    ICoreScope coreScope
    View Source

    WriteLock(Int32[])

    Declaration
    public void WriteLock(params int[] lockIds)
    Parameters
    Type Name Description
    System.Int32[] lockIds
    View Source

    WriteLock(TimeSpan, Int32)

    Declaration
    public void WriteLock(TimeSpan timeout, int lockId)
    Parameters
    Type Name Description
    TimeSpan timeout
    System.Int32 lockId
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX