Class AbstractBinder<T>
public abstract class AbstractBinder<T> : IBinder<T>, IBinder, IServiceNameAware, IDisposable
Type Parameters
T
- Inheritance
-
AbstractBinder<T>
- Implements
-
IBinder<T>
- Derived
- Inherited Members
Constructors
AbstractBinder(IApplicationContext, ILogger)
protected AbstractBinder(IApplicationContext context, ILogger logger)
Parameters
contextIApplicationContextloggerILogger
Properties
ApplicationContext
public virtual IApplicationContext ApplicationContext { get; }
Property Value
EvaluationContext
protected virtual IEvaluationContext EvaluationContext { get; set; }
Property Value
ExpressionParser
protected virtual IExpressionParser ExpressionParser { get; set; }
Property Value
ServiceName
public abstract string ServiceName { get; set; }
Property Value
TargetType
Gets the target type this binder can bind to
public abstract Type TargetType { get; }
Property Value
Methods
ApplyPrefix(string, string)
public static string ApplyPrefix(string prefix, string name)
Parameters
Returns
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
namestringthe logical identity of the message source
groupstringthe consumer group to which this consumer belongs
inboundTargetobjectthe application interface to be bound as a consumer
consumerOptionsIConsumerOptionsthe 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
namestringthe logical identity of the message source
groupstringthe consumer group to which this consumer belongs
inboundTargetTthe application interface to be bound as a consumer
consumerOptionsIConsumerOptionsthe 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
namestringthe logical identity of the message outbound target
outboundTargetobjectthe application interface to be bound as a producer
producerOptionsIProducerOptionsthe 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
namestringthe logical identity of the message outbound target
outboundTargetTthe application interface to be bound as a producer
producerOptionsIProducerOptionsthe producer options
Returns
- IBinding
the setup binding
BuildRetryTemplate(IConsumerOptions)
protected RetryTemplate BuildRetryTemplate(IConsumerOptions options)
Parameters
optionsIConsumerOptions
Returns
ConstructDLQName(string)
public static string ConstructDLQName(string name)
Parameters
namestring
Returns
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
namestringgroupstringinputTargetTconsumerOptionsIConsumerOptions
Returns
DoBindProducer(string, T, IProducerOptions)
protected abstract IBinding DoBindProducer(string name, T outboundTarget, IProducerOptions producerOptions)
Parameters
namestringoutboundTargetTproducerOptionsIProducerOptions
Returns
GetRetryableExceptions(List<string>)
protected Dictionary<Type, bool> GetRetryableExceptions(List<string> exceptionList)
Parameters
Returns
GroupedName(string, string)
protected virtual string GroupedName(string name, string group)