Search Results for

    Show / Hide Table of Contents
    View Source

    Class RuntimeAsyncComponentBase

    Represents a component.

    Inheritance
    System.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 or the runtime level is not Run.

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

    Determines whether the component can execute.

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

    If set to true indicates Umbraco is restarting.

    Returns
    Type Description
    System.Boolean

    true if the component can execute; otherwise, false.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RuntimeAsyncComponentBase(IRuntimeState)
    • Methods
      • CanExecute(Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX