Class PublisherMapping
- Namespace
- AWS.Messaging.Configuration
- Assembly
- AWS.Messaging.dll
This maps a message type to a message publisher.
public class PublisherMapping
- Inheritance
-
PublisherMapping
Constructors
PublisherMapping(Type, IMessagePublisherConfiguration, string, string?)
Creates a mapping object for the specified message type as well as the AWS service to publisher to. This object will be used internally by the framework to properly route the user-defined message.
public PublisherMapping(Type messageType, IMessagePublisherConfiguration publisherConfiguration, string publishTargetType, string? messageTypeIdentifier = null)
Parameters
messageType
TypeThe Type of the message
publisherConfiguration
IMessagePublisherConfigurationThe publisher configuration
publishTargetType
stringThe type of publisher to use
messageTypeIdentifier
stringThe language-agnostic message type identifier. If not specified, the .NET type will be used.
Properties
MessageType
public Type MessageType { get; init; }
Property Value
MessageTypeIdentifier
public string MessageTypeIdentifier { get; init; }
Property Value
PublishTargetType
public string PublishTargetType { get; init; }
Property Value
PublisherConfiguration
public IMessagePublisherConfiguration PublisherConfiguration { get; init; }