Interface IProducerCollection
Returns an IProducer that can be used to produce messages against the message broker.
Namespace: Silverback.Messaging.Broker
Assembly: Silverback.Integration.dll
Syntax
public interface IProducerCollection : IReadOnlyCollection<IProducer>, IEnumerable<IProducer>, IEnumerable
Methods
GetProducerForEndpoint(string)
Gets a producer for the specified endpoint.
Declaration
IProducer GetProducerForEndpoint(string endpointName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | endpointName | The endpoint name. It could be either the topic/queue name or the friendly name. |
Returns
| Type | Description |
|---|---|
| IProducer | The IProducer. |
GetProducersForMessage(Type)
Gets the producers that are compatible with the specified message type (and are configured for routing).
Declaration
IReadOnlyCollection<IProducer> GetProducersForMessage(Type messageType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | messageType | The message type. |
Returns
| Type | Description |
|---|---|
| IReadOnlyCollection<IProducer> | A collection of IProducer to be used to produce the message. |