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
context
IApplicationContextlogger
ILogger
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
name
stringthe logical identity of the message source
group
stringthe consumer group to which this consumer belongs
inboundTarget
objectthe application interface to be bound as a consumer
consumerOptions
IConsumerOptionsthe 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
stringthe logical identity of the message source
group
stringthe consumer group to which this consumer belongs
inboundTarget
Tthe application interface to be bound as a consumer
consumerOptions
IConsumerOptionsthe 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
stringthe logical identity of the message outbound target
outboundTarget
objectthe application interface to be bound as a producer
producerOptions
IProducerOptionsthe 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
stringthe logical identity of the message outbound target
outboundTarget
Tthe application interface to be bound as a producer
producerOptions
IProducerOptionsthe producer options
Returns
- IBinding
the setup binding
BuildRetryTemplate(IConsumerOptions)
protected RetryTemplate BuildRetryTemplate(IConsumerOptions options)
Parameters
options
IConsumerOptions
Returns
ConstructDLQName(string)
public static string ConstructDLQName(string name)
Parameters
name
string
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
name
stringgroup
stringinputTarget
TconsumerOptions
IConsumerOptions
Returns
DoBindProducer(string, T, IProducerOptions)
protected abstract IBinding DoBindProducer(string name, T outboundTarget, IProducerOptions producerOptions)
Parameters
name
stringoutboundTarget
TproducerOptions
IProducerOptions
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)