Class DefaultBinding<T>
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
stringgroup
stringtarget
Tlifecycle
ILifecycle
DefaultBinding(string, T, ILifecycle)
public DefaultBinding(string name, T target, ILifecycle lifecycle)
Parameters
name
stringtarget
Tlifecycle
ILifecycle
Fields
_lifecycle
protected readonly ILifecycle _lifecycle
Field Value
_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
Endpoint
protected virtual ILifecycle Endpoint { get; }
Property Value
Group
public virtual string Group { get; }
Property Value
IsPausable
public virtual bool IsPausable { get; }
Property Value
IsRunning
Gets a value indicating whether gets a value indicating if its running
public override bool IsRunning { get; }
Property Value
Name
Gets the name of the destination for this binding.
public override string Name { get; }
Property Value
State
public virtual string State { get; }
Property Value
Methods
AfterUnbind()
protected virtual void AfterUnbind()
Pause()
public override Task Pause()
Returns
Resume()
public override Task Resume()
Returns
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