C# Class NServiceBus.Pipeline.LogicalMessageFactory

Factory to create LogicalMessages.
Mostra file Open project: Particular/NServiceBus

Public Methods

Method Description
Create ( Type messageType, object message ) : LogicalMessage

Creates a new LogicalMessage using the specified messageType, message instance and headers.

Create ( object message ) : LogicalMessage

Creates a new LogicalMessage using the specified message instance.

LogicalMessageFactory ( MessageMetadataRegistry messageMetadataRegistry, IMessageMapper messageMapper ) : System

Initializes a new instance of LogicalMessageFactory.

Method Details

Create() public method

Creates a new LogicalMessage using the specified messageType, message instance and headers.
public Create ( Type messageType, object message ) : LogicalMessage
messageType System.Type The message type.
message object The message instance.
return LogicalMessage

Create() public method

Creates a new LogicalMessage using the specified message instance.
public Create ( object message ) : LogicalMessage
message object The message instance.
return LogicalMessage

LogicalMessageFactory() public method

Initializes a new instance of LogicalMessageFactory.
public LogicalMessageFactory ( MessageMetadataRegistry messageMetadataRegistry, IMessageMapper messageMapper ) : System
messageMetadataRegistry MessageMetadataRegistry
messageMapper IMessageMapper
return System