Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMainDomLock

    An application-wide distributed lock

    Namespace: Umbraco.Cms.Core.Runtime
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMainDomLock
    Remarks

    Disposing releases the lock

    Methods

    View Source

    AcquireLockAsync(Int32)

    Acquires an application-wide distributed lock

    Declaration
    Task<bool> AcquireLockAsync(int millisecondsTimeout)
    Parameters
    Type Name Description
    System.Int32 millisecondsTimeout
    Returns
    Type Description
    Task<System.Boolean>

    An awaitable boolean value which will be false if the elapsed millsecondsTimeout value is exceeded

    View Source

    ListenAsync()

    Wait on a background thread to receive a signal from another AppDomain

    Declaration
    Task ListenAsync()
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AcquireLockAsync(Int32)
      • ListenAsync()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX