Class Producer<TBroker, TEndpoint>
Produces to an endpoint.
Inheritance
Producer<TBroker, TEndpoint>
Implements
Inherited Members
Namespace: Silverback.Messaging.Broker
Assembly: Silverback.Integration.dll
Syntax
public abstract class Producer<TBroker, TEndpoint> : Producer, IProducer where TBroker : IBroker where TEndpoint : IProducerEndpoint
Type Parameters
| Name | Description |
|---|---|
| TBroker | |
| TEndpoint |
Constructors
| Improve this doc View sourceProducer(TBroker, TEndpoint, IBrokerBehaviorsProvider<IProducerBehavior>, IServiceProvider, IOutboundLogger<Producer>)
Initializes a new instance of the Producer<TBroker, TEndpoint> class.
Declaration
protected Producer(TBroker broker, TEndpoint endpoint, IBrokerBehaviorsProvider<IProducerBehavior> behaviorsProvider, IServiceProvider serviceProvider, IOutboundLogger<Producer> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| TBroker | broker | The IBroker that instantiated this producer. |
| TEndpoint | endpoint | The endpoint to produce to. |
| IBrokerBehaviorsProvider<IProducerBehavior> | behaviorsProvider | |
| IServiceProvider | serviceProvider | The IServiceProvider to be used to resolve the needed services. |
| IOutboundLogger<Producer> | logger |
Properties
| Improve this doc View sourceBroker
Gets the TBroker that owns this producer.
Declaration
public TBroker Broker { get; }
Property Value
| Type | Description |
|---|---|
| TBroker |
Endpoint
Gets the TEndpoint representing the endpoint that is being produced to.
Declaration
public TEndpoint Endpoint { get; }
Property Value
| Type | Description |
|---|---|
| TEndpoint |