Table of Contents

Class DefaultBinding<T>

Namespace
Steeltoe.Stream.Binder
Assembly
Steeltoe.Stream.StreamBase.dll
public class DefaultBinding<T> : AbstractBinding, IBinding, IPausable, ILifecycle

Type Parameters

T
Inheritance
DefaultBinding<T>
Implements
Derived
Inherited Members

Constructors

DefaultBinding(string, string, T, ILifecycle)

public DefaultBinding(string name, string group, T target, ILifecycle lifecycle)

Parameters

name string
group string
target T
lifecycle ILifecycle

DefaultBinding(string, T, ILifecycle)

public DefaultBinding(string name, T target, ILifecycle lifecycle)

Parameters

name string
target T
lifecycle ILifecycle

Fields

_lifecycle

protected readonly ILifecycle _lifecycle

Field Value

ILifecycle

_target

protected readonly T _target

Field Value

T

Properties

BindingName

Gets the name of the target for this binding (i.e., channel name).

public override string BindingName { get; }

Property Value

string

Endpoint

protected virtual ILifecycle Endpoint { get; }

Property Value

ILifecycle

Group

public virtual string Group { get; }

Property Value

string

IsPausable

public virtual bool IsPausable { get; }

Property Value

bool

IsRunning

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

public override bool IsRunning { get; }

Property Value

bool

Name

Gets the name of the destination for this binding.

public override string Name { get; }

Property Value

string

State

public virtual string State { get; }

Property Value

string

Methods

AfterUnbind()

protected virtual void AfterUnbind()

Pause()

public override Task Pause()

Returns

Task

Resume()

public override Task Resume()

Returns

Task

Start()

Start this component

public override Task Start()

Returns

Task

a task to signal completion

Stop()

Stop this component

public override Task Stop()

Returns

Task

a task to signal completion

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Unbind()

Unbinds the target component represented by this instance and stops any active components

public override Task Unbind()

Returns

Task

task to signal results