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(int)

    Acquires an application-wide distributed lock

    Declaration
    Task<bool> AcquireLockAsync(int millisecondsTimeout)
    Parameters
    Type Name Description
    int millisecondsTimeout
    Returns
    Type Description
    Task<bool>

    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
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX