Table of Contents

Class AbstractBinder<T>

Namespace
Steeltoe.Stream.Binder
Assembly
Steeltoe.Stream.StreamBase.dll
public abstract class AbstractBinder<T> : IBinder<T>, IBinder, IServiceNameAware, IDisposable

Type Parameters

T
Inheritance
AbstractBinder<T>
Implements
Derived
Inherited Members

Constructors

AbstractBinder(IApplicationContext, ILogger)

protected AbstractBinder(IApplicationContext context, ILogger logger)

Parameters

context IApplicationContext
logger ILogger

Properties

ApplicationContext

public virtual IApplicationContext ApplicationContext { get; }

Property Value

IApplicationContext

EvaluationContext

protected virtual IEvaluationContext EvaluationContext { get; set; }

Property Value

IEvaluationContext

ExpressionParser

protected virtual IExpressionParser ExpressionParser { get; set; }

Property Value

IExpressionParser

ServiceName

public abstract string ServiceName { get; set; }

Property Value

string

TargetType

Gets the target type this binder can bind to

public abstract Type TargetType { get; }

Property Value

Type

Methods

ApplyPrefix(string, string)

public static string ApplyPrefix(string prefix, string name)

Parameters

prefix string
name string

Returns

string

BindConsumer(string, string, object, IConsumerOptions)

Bind the target component as a message consumer to the logical entity identified by the name.

public virtual IBinding BindConsumer(string name, string group, object inboundTarget, IConsumerOptions consumerOptions)

Parameters

name string

the logical identity of the message source

group string

the consumer group to which this consumer belongs

inboundTarget object

the application interface to be bound as a consumer

consumerOptions IConsumerOptions

the consumer options

Returns

IBinding

the setup binding

BindConsumer(string, string, T, IConsumerOptions)

Bind the target component as a message consumer to the logical entity identified by the name.

public virtual IBinding BindConsumer(string name, string group, T inboundTarget, IConsumerOptions consumerOptions)

Parameters

name string

the logical identity of the message source

group string

the consumer group to which this consumer belongs

inboundTarget T

the application interface to be bound as a consumer

consumerOptions IConsumerOptions

the consumer options

Returns

IBinding

the setup binding

BindProducer(string, object, IProducerOptions)

Bind the target component as a message producer to the logical entity identified by the name.

public virtual IBinding BindProducer(string name, object outboundTarget, IProducerOptions producerOptions)

Parameters

name string

the logical identity of the message outbound target

outboundTarget object

the application interface to be bound as a producer

producerOptions IProducerOptions

the producer options

Returns

IBinding

the setup binding

BindProducer(string, T, IProducerOptions)

Bind the target component as a message producer to the logical entity identified by the name.

public virtual IBinding BindProducer(string name, T outboundTarget, IProducerOptions producerOptions)

Parameters

name string

the logical identity of the message outbound target

outboundTarget T

the application interface to be bound as a producer

producerOptions IProducerOptions

the producer options

Returns

IBinding

the setup binding

BuildRetryTemplate(IConsumerOptions)

protected RetryTemplate BuildRetryTemplate(IConsumerOptions options)

Parameters

options IConsumerOptions

Returns

RetryTemplate

ConstructDLQName(string)

public static string ConstructDLQName(string name)

Parameters

name string

Returns

string

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public abstract void Dispose()

DoBindConsumer(string, string, T, IConsumerOptions)

protected abstract IBinding DoBindConsumer(string name, string group, T inputTarget, IConsumerOptions consumerOptions)

Parameters

name string
group string
inputTarget T
consumerOptions IConsumerOptions

Returns

IBinding

DoBindProducer(string, T, IProducerOptions)

protected abstract IBinding DoBindProducer(string name, T outboundTarget, IProducerOptions producerOptions)

Parameters

name string
outboundTarget T
producerOptions IProducerOptions

Returns

IBinding

GetRetryableExceptions(List<string>)

protected Dictionary<Type, bool> GetRetryableExceptions(List<string> exceptionList)

Parameters

exceptionList List<string>

Returns

Dictionary<Type, bool>

GroupedName(string, string)

protected virtual string GroupedName(string name, string group)

Parameters

name string
group string

Returns

string