Class ProducerEndpointNameResolver<TMessage>
The base class for a type used to resolve the actual target endpoint name for the outbound message.
Inheritance
ProducerEndpointNameResolver<TMessage>
Implements
Inherited Members
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public abstract class ProducerEndpointNameResolver<TMessage> : IProducerEndpointNameResolver where TMessage : class
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages being produced. |
Methods
| Improve this doc View sourceGetName(IOutboundEnvelope)
Gets the actual target endpoint name for the message being produced. If it returns
null
the message will not be produced.
Declaration
public string GetName(IOutboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IOutboundEnvelope | envelope | The envelope containing the message being produced. |
Returns
Type | Description |
---|---|
string | The actual name of the endpoint to be produced to. |
GetName(IOutboundEnvelope<TMessage>)
Gets the actual target endpoint name for the message being produced.
Declaration
protected abstract string GetName(IOutboundEnvelope<TMessage> envelope)
Parameters
Type | Name | Description |
---|---|---|
IOutboundEnvelope<TMessage> | envelope | The envelope containing the message being produced. |
Returns
Type | Description |
---|---|
string | The actual name of the endpoint to be produced to. |