Interface IBinder
A 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.
Namespace: Steeltoe.Stream.Binder
Assembly: Steeltoe.Stream.Abstractions.dll
Syntax
public interface IBinder
Properties
| Edit this page View SourceTargetType
Gets the target type this binder can bind to
Declaration
Type TargetType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Edit this page View SourceBindConsumer(String, String, Object, IConsumerOptions)
Bind the target component as a message consumer to the logical entity identified by the name.
Declaration
IBinding BindConsumer(string name, string group, object 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 |
System.Object | inboundTarget | the application interface to be bound as a consumer |
IConsumerOptions | consumerOptions | the consumer options |
Returns
Type | Description |
---|---|
IBinding | the setup binding |
BindProducer(String, Object, IProducerOptions)
Bind the target component as a message producer to the logical entity identified by the name.
Declaration
IBinding BindProducer(string name, object outboundTarget, IProducerOptions producerOptions)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the logical identity of the message outbound target |
System.Object | outboundTarget | the application interface to be bound as a producer |
IProducerOptions | producerOptions | the producer options |
Returns
Type | Description |
---|---|
IBinding | the setup binding |