Interface IBinder<T>
A typed version of the strategy interface used to bind an app interface to a logical name. The name is intended to identify a logical consumer or producer of messages. This may be a queue, a channel adapter, another message channel, etc.
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface IBinder<in T> : IBinder, IServiceNameAware, IDisposable
Type Parameters
Tthe target type supported by the binder
- Inherited Members
Methods
BindConsumer(string, string, T, IConsumerOptions)
Bind the target component as a message consumer to the logical entity identified by the name.
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, T, IProducerOptions)
Bind the target component as a message producer to the logical entity identified by the name.
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