Class BackgroundTaskRunner.MainDomHook
Represents a MainDom hook.
Inheritance
System.Object
Namespace: Umbraco.Web.Scheduling
Assembly: Umbraco.Web.dll
Syntax
public class MainDomHook
Constructors
View SourceMainDomHook(IMainDom, Action, Action)
Initializes a new instance of the BackgroundTaskRunner.MainDomHook class.
Declaration
public MainDomHook(IMainDom mainDom, Action install, Action release)
Parameters
Type | Name | Description |
---|---|---|
IMainDom | mainDom | The IMainDom object. |
System.Action | install | A method to execute when hooking into the main domain. |
System.Action | release | A method to execute when the main domain releases. |
Properties
View SourceInstall
Gets the method to execute when hooking into the main domain.
Declaration
public Action Install { get; }
Property Value
Type | Description |
---|---|
System.Action |
MainDom
Gets the IMainDom object.
Declaration
public IMainDom MainDom { get; }
Property Value
Type | Description |
---|---|
IMainDom |
Release
Gets the method to execute when the main domain releases.
Declaration
public Action Release { get; }
Property Value
Type | Description |
---|---|
System.Action |