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