Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ICoreScope

    Represents a scope.

    Namespace: Umbraco.Cms.Core.Scoping
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ICoreScope : IInstanceIdentifiable

    Properties

    View Source

    Depth

    Gets the distance from the root scope.

    Declaration
    virtual int Depth { get; }
    Property Value
    Type Description
    System.Int32
    Remarks

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

    View Source

    IsolatedCaches

    Gets the scope isolated cache.

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

    Locks

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

    Notifications

    Gets the scope notification publisher

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

    RepositoryCacheMode

    Gets the repositories cache mode.

    Declaration
    RepositoryCacheMode RepositoryCacheMode { get; }
    Property Value
    Type Description
    RepositoryCacheMode

    Methods

    View Source

    Complete()

    Completes the scope.

    Declaration
    bool Complete()
    Returns
    Type Description
    System.Boolean

    A value indicating whether the scope has been successfully completed.

    Remarks

    Can return false if any child scope has not completed.

    View Source

    EagerReadLock(Int32[])

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

    EagerReadLock(TimeSpan, Int32)

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

    EagerWriteLock(Int32[])

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

    EagerWriteLock(TimeSpan, Int32)

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

    ReadLock(Int32[])

    Read-locks some lock objects.

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

    Array of lock object identifiers.

    View Source

    ReadLock(TimeSpan, Int32)

    Read-locks some lock objects.

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

    The database timeout in milliseconds

    System.Int32 lockId

    The lock object identifier.

    View Source

    WriteLock(Int32[])

    Write-locks some lock objects.

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

    Array of object identifiers.

    View Source

    WriteLock(TimeSpan, Int32)

    Write-locks some lock objects.

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

    The database timeout in milliseconds

    System.Int32 lockId

    The lock object identifier.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Depth
      • IsolatedCaches
      • Locks
      • Notifications
      • RepositoryCacheMode
    • Methods
      • Complete()
      • EagerReadLock(Int32[])
      • EagerReadLock(TimeSpan, Int32)
      • EagerWriteLock(Int32[])
      • EagerWriteLock(TimeSpan, Int32)
      • ReadLock(Int32[])
      • ReadLock(TimeSpan, Int32)
      • WriteLock(Int32[])
      • WriteLock(TimeSpan, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX