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.
Inherited Members
Namespace: Steeltoe.Stream.Binder
Assembly: Steeltoe.Stream.Abstractions.dll
Syntax
public interface IBinder<in T> : IBinder
Type Parameters
Name | Description |
---|---|
T | the target type supported by the binder |
Methods
| Edit this page View SourceBindConsumer(String, String, T, IConsumerOptions)
Bind the target component as a message consumer to the logical entity identified by the name.
Declaration
IBinding BindConsumer(string name, string group, T inboundTarget, IConsumerOptions consumerOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the logical identity of the message source |
System.String | group | the consumer group to which this consumer belongs |
T | inboundTarget | the application interface to be bound as a consumer |
IConsumerOptions | consumerOptions | the consumer options |
Returns
Type | Description |
---|---|
IBinding | the setup binding |
BindProducer(String, T, IProducerOptions)
Bind the target component as a message producer to the logical entity identified by the name.
Declaration
IBinding BindProducer(string name, T outboundTarget, IProducerOptions producerOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the logical identity of the message outbound target |
T | outboundTarget | the application interface to be bound as a producer |
IProducerOptions | producerOptions | the producer options |
Returns
Type | Description |
---|---|
IBinding | the setup binding |