Search Results for

    Show / Hide Table of Contents
    View Source

    Class RuntimeAsyncComponentBase

    Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

    Inheritance
    object
    AsyncComponentBase
    Namespace: Umbraco.Cms.Core.Composing
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class RuntimeAsyncComponentBase : AsyncComponentBase, IAsyncComponent
    Remarks

    By default, the component will not execute if Umbraco is restarting.

    Constructors

    View Source

    RuntimeAsyncComponentBase(IRuntimeState)

    Initializes a new instance of the RuntimeAsyncComponentBase class.

    Declaration
    protected RuntimeAsyncComponentBase(IRuntimeState runtimeState)
    Parameters
    Type Name Description
    IRuntimeState runtimeState

    State of the Umbraco runtime.

    Methods

    View Source

    CanExecute(bool)

    Determines whether the component can execute.

    Declaration
    protected override bool CanExecute(bool isRestarting)
    Parameters
    Type Name Description
    bool isRestarting

    If set to true indicates Umbraco is restarting.

    Returns
    Type Description
    bool

    true if the component can execute; otherwise, false.

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