Table of Contents

Class AbstractBindingLifecycle

Namespace
Steeltoe.Stream.Binding
Assembly
Steeltoe.Stream.StreamBase.dll
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 IBindingService
bindables IEnumerable<IBindable>

Fields

_bindingService

protected readonly IBindingService _bindingService

Field Value

IBindingService

Properties

IsAutoStartup

Gets a value indicating whether the auto startup is set for this object

public virtual bool IsAutoStartup { get; }

Property Value

bool

IsRunning

Gets a value indicating whether gets a value indicating if its running

public virtual bool IsRunning { get; }

Property Value

bool

Phase

Gets the phase of this object

public virtual int Phase { get; }

Property Value

int

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 Action

the callback action to invoke when complete

Returns

Task

a task for completion