Table of Contents

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

endpointName string

The endpoint name. It could be either the topic/queue name or the friendly name.

Returns

IProducer

The IProducer.

GetProducersForMessage(Type)

Gets the producers that are compatible with the specified message type (and are configured for routing).

IReadOnlyCollection<IProducer> GetProducersForMessage(Type messageType)

Parameters

messageType Type

The message type.

Returns

IReadOnlyCollection<IProducer>

A collection of IProducer to be used to produce the message.