Class AbstractBinder<T>
public abstract class AbstractBinder<T> : IBinder<T>, IBinder, IServiceNameAware, IDisposableType Parameters
- T
- Inheritance
- 
      
      AbstractBinder<T>
- Implements
- 
      IBinder<T>
- Derived
- Inherited Members
Constructors
AbstractBinder(IApplicationContext, ILogger)
protected AbstractBinder(IApplicationContext context, ILogger logger)Parameters
- contextIApplicationContext
- loggerILogger
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
- namestring
- the logical identity of the message source 
- groupstring
- the consumer group to which this consumer belongs 
- inboundTargetobject
- the application interface to be bound as a consumer 
- consumerOptionsIConsumerOptions
- 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
- namestring
- the logical identity of the message source 
- groupstring
- the consumer group to which this consumer belongs 
- inboundTargetT
- the application interface to be bound as a consumer 
- consumerOptionsIConsumerOptions
- 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
- namestring
- the logical identity of the message outbound target 
- outboundTargetobject
- the application interface to be bound as a producer 
- producerOptionsIProducerOptions
- 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
- namestring
- the logical identity of the message outbound target 
- outboundTargetT
- the application interface to be bound as a producer 
- producerOptionsIProducerOptions
- the 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
- namestring
- groupstring
- inputTargetT
- consumerOptionsIConsumerOptions
Returns
DoBindProducer(string, T, IProducerOptions)
protected abstract IBinding DoBindProducer(string name, T outboundTarget, IProducerOptions producerOptions)Parameters
- namestring
- outboundTargetT
- producerOptionsIProducerOptions
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)