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.
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 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(bool)
Determines whether the component can execute.
Declaration
protected override bool CanExecute(bool isRestarting)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isRestarting | If set to |
Returns
| Type | Description |
|---|---|
| bool |
|