Class RuntimeAsyncComponentBase
Represents a component.
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 SourceRuntimeAsyncComponentBase(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 SourceCanExecute(Boolean)
Determines whether the component can execute.
Declaration
protected override bool CanExecute(bool isRestarting)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isRestarting | If set to |
Returns
Type | Description |
---|---|
System.Boolean |
|