Class AbstractBindingLifecycle
public abstract class AbstractBindingLifecycle : ISmartLifecycle, ILifecycle, IPhased
- Inheritance
-
AbstractBindingLifecycle
- Implements
- Derived
- Inherited Members
Constructors
AbstractBindingLifecycle(IBindingService, IEnumerable<IBindable>)
protected AbstractBindingLifecycle(IBindingService bindingService, IEnumerable<IBindable> bindables)
Parameters
bindingService
IBindingServicebindables
IEnumerable<IBindable>
Fields
_bindingService
protected readonly IBindingService _bindingService
Field Value
Properties
IsAutoStartup
Gets a value indicating whether the auto startup is set for this object
public virtual bool IsAutoStartup { get; }
Property Value
IsRunning
Gets a value indicating whether gets a value indicating if its running
public virtual bool IsRunning { get; }
Property Value
Phase
Gets the phase of this object
public virtual int Phase { get; }
Property Value
Methods
DoStartWithBindable(IBindable)
protected abstract void DoStartWithBindable(IBindable bindable)
Parameters
bindable
IBindable
DoStopWithBindable(IBindable)
protected abstract void DoStopWithBindable(IBindable bindable)
Parameters
bindable
IBindable
Start()
Start this component
public virtual Task Start()
Returns
- Task
a task to signal completion
Stop()
Stop this component
public virtual Task Stop()
Returns
- Task
a task to signal completion
Stop(Action)
Stop the component and issue the callback when complete
public Task Stop(Action callback)
Parameters
callback
Actionthe callback action to invoke when complete
Returns
- Task
a task for completion