Search Results for

    Show / Hide Table of Contents
    View Source

    Class CoreScope

    Inheritance
    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, bool?, 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
    bool? shouldScopeFileSystems
    IScopedNotificationPublisher notificationPublisher
    View Source

    CoreScope(ICoreScope?, IDistributedLockingMechanismFactory, ILoggerFactory, FileSystems, IEventAggregator, RepositoryCacheMode, bool?, 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
    bool? shouldScopeFileSystems
    IScopedNotificationPublisher notificationPublisher

    Fields

    View Source

    Completed

    Declaration
    protected bool? Completed
    Field Value
    Type Description
    bool?

    Properties

    View Source

    CreatedThreadId

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

    Depth

    Gets the distance from the root scope.

    Declaration
    public int Depth { get; }
    Property Value
    Type Description
    int
    Remarks

    A zero represents a root scope, any value greater than zero represents a child scope.

    View Source

    HasParentScope

    Declaration
    protected bool HasParentScope { get; }
    Property Value
    Type Description
    bool
    View Source

    InstanceId

    Gets the instance unique identifier.

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

    IsolatedCaches

    Gets the scope isolated cache.

    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

    Gets the scope notification publisher

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

    RepositoryCacheMode

    Gets the repositories cache mode.

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

    ScopedFileSystems

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

    Methods

    View Source

    ChildCompleted(bool?)

    Declaration
    protected void ChildCompleted(bool? completed)
    Parameters
    Type Name Description
    bool? completed
    View Source

    Complete()

    Completes a scope

    Declaration
    public bool Complete()
    Returns
    Type Description
    bool

    A value indicating whether the scope is completed or not.

    View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public virtual void Dispose()
    View Source

    EagerReadLock(params int[])

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

    EagerReadLock(TimeSpan, int)

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

    EagerWriteLock(params int[])

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

    EagerWriteLock(TimeSpan, int)

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

    HandleScopedFileSystems()

    Declaration
    protected void HandleScopedFileSystems()
    View Source

    HandleScopedNotifications()

    Declaration
    protected void HandleScopedNotifications()
    View Source

    ReadLock(params int[])

    Read-locks some lock objects.

    Declaration
    public void ReadLock(params int[] lockIds)
    Parameters
    Type Name Description
    int[] lockIds

    Array of lock object identifiers.

    View Source

    ReadLock(TimeSpan, int)

    Read-locks some lock objects.

    Declaration
    public void ReadLock(TimeSpan timeout, int lockId)
    Parameters
    Type Name Description
    TimeSpan timeout

    The database timeout in milliseconds

    int lockId

    The lock object identifier.

    View Source

    SetParentScope(ICoreScope)

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

    WriteLock(params int[])

    Write-locks some lock objects.

    Declaration
    public void WriteLock(params int[] lockIds)
    Parameters
    Type Name Description
    int[] lockIds

    Array of object identifiers.

    View Source

    WriteLock(TimeSpan, int)

    Write-locks some lock objects.

    Declaration
    public void WriteLock(TimeSpan timeout, int lockId)
    Parameters
    Type Name Description
    TimeSpan timeout

    The database timeout in milliseconds

    int lockId

    The lock object identifier.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX