C# Class Tp.Integration.Messages.ServiceBus.Transport.Router.MsmqRoutableTransport

Inheritance: IMsmqTransport
Afficher le fichier Open project: TargetProcess/Target-Process-Plugins

Private Properties

Свойство Type Description
CheckConfiguration void
ClearFailuresForMessage void
CreateAndStartMainMessageConsumer IMessageConsumer
CreateAndStartUiMessageConsumer IMessageConsumer
CreateQueuesIfNecessary void
Extract IMessage[]
FillIdForCorrelationAndWindowsIdentity void
GetQueueNameToRouteMessageIn string
GetTransactionTypeForReceive MessageQueueTransactionType
GetTransactionTypeForSend MessageQueueTransactionType
Handle void
HandleAsync void
HandledMaxRetries bool
IncrementFailuresForMessage void
OnFailedMessageProcessing bool
OnFinishedMessageProcessing bool
OnTransportMessageReceived bool
ProcessMessage void
ReceiveFromQueue void

Méthodes publiques

Méthode Description
AbortHandlingCurrentMessage ( ) : void

Causes the processing of the current message to be aborted.

ChangeNumberOfWorkerThreads ( int targetNumberOfWorkerThreads ) : void

Changes the number of worker threads to the given target, stopping or starting worker threads as needed.

Convert ( System.Messaging.Message m ) : TransportMessage

Converts an MSMQ Message into an NServiceBus message.

Dispose ( ) : void
GetFailedQueue ( System.Messaging.Message m ) : string

Returns the queue whose process failed processing the given message by accessing the label of the message.

GetLabelWithoutFailedQueue ( System.Messaging.Message m ) : string

Gets the label of the message stripping out the failed queue.

GetQueueName ( string accountName ) : string
QueueIsNotEmpty ( ) : bool
ReceiveMessageLater ( TransportMessage m ) : void

Re-queues a message for processing at another time.

This method will place the message onto the back of the queue which may break message ordering.

ReceiveMessageLater ( TransportMessage m, string address ) : void
Send ( TransportMessage m, string destination ) : void

Sends a message to the specified destination.

Start ( ) : void

Starts the transport.

TryDeleteQueue ( string accountName ) : bool
TryDeleteUiQueue ( string accountName ) : bool

Méthodes protégées

Méthode Description
MoveToErrorQueue ( MessageEx message ) : void

Moves the given message to the configured error queue.

Private Methods

Méthode Description
CheckConfiguration ( ) : void
ClearFailuresForMessage ( string messageId ) : void
CreateAndStartMainMessageConsumer ( MsmqRouterFactory factory ) : IMessageConsumer
CreateAndStartUiMessageConsumer ( MsmqRouterFactory factory ) : IMessageConsumer
CreateQueuesIfNecessary ( ) : void
Extract ( System.Messaging.Message message ) : IMessage[]

Extracts the messages from an MSMQ Message.

FillIdForCorrelationAndWindowsIdentity ( TransportMessage result, System.Messaging.Message m ) : void
GetQueueNameToRouteMessageIn ( MessageEx m ) : string
GetTransactionTypeForReceive ( ) : MessageQueueTransactionType

Gets the transaction type to use when receiving a message from the queue.

GetTransactionTypeForSend ( ) : MessageQueueTransactionType

Gets the transaction type to use when sending a message.

Handle ( MessageEx message ) : void
HandleAsync ( MessageEx message ) : void
HandledMaxRetries ( string messageId ) : bool
IncrementFailuresForMessage ( string messageId ) : void
OnFailedMessageProcessing ( MessageEx message ) : bool
OnFinishedMessageProcessing ( MessageEx message ) : bool
OnTransportMessageReceived ( TransportMessage msg, MessageEx origin ) : bool
ProcessMessage ( MessageEx message ) : void
ReceiveFromQueue ( MessageEx message, Action processMessageAction ) : void

Method Details

AbortHandlingCurrentMessage() public méthode

Causes the processing of the current message to be aborted.
public AbortHandlingCurrentMessage ( ) : void
Résultat void

ChangeNumberOfWorkerThreads() public méthode

Changes the number of worker threads to the given target, stopping or starting worker threads as needed.
public ChangeNumberOfWorkerThreads ( int targetNumberOfWorkerThreads ) : void
targetNumberOfWorkerThreads int
Résultat void

Convert() public méthode

Converts an MSMQ Message into an NServiceBus message.
public Convert ( System.Messaging.Message m ) : TransportMessage
m System.Messaging.Message The MSMQ message to convert.
Résultat TransportMessage

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetFailedQueue() public static méthode

Returns the queue whose process failed processing the given message by accessing the label of the message.
public static GetFailedQueue ( System.Messaging.Message m ) : string
m System.Messaging.Message
Résultat string

GetLabelWithoutFailedQueue() public static méthode

Gets the label of the message stripping out the failed queue.
public static GetLabelWithoutFailedQueue ( System.Messaging.Message m ) : string
m System.Messaging.Message
Résultat string

GetQueueName() public méthode

public GetQueueName ( string accountName ) : string
accountName string
Résultat string

MoveToErrorQueue() protected méthode

Moves the given message to the configured error queue.
protected MoveToErrorQueue ( MessageEx message ) : void
message Tp.Integration.Messages.ServiceBus.Transport.Router.MsmqRx.MessageEx
Résultat void

QueueIsNotEmpty() public méthode

public QueueIsNotEmpty ( ) : bool
Résultat bool

ReceiveMessageLater() public méthode

Re-queues a message for processing at another time.
This method will place the message onto the back of the queue which may break message ordering.
public ReceiveMessageLater ( TransportMessage m ) : void
m TransportMessage The message to process later.
Résultat void

ReceiveMessageLater() public méthode

public ReceiveMessageLater ( TransportMessage m, string address ) : void
m TransportMessage
address string
Résultat void

Send() public méthode

Sends a message to the specified destination.
public Send ( TransportMessage m, string destination ) : void
m TransportMessage The message to send.
destination string The address of the destination to send the message to.
Résultat void

Start() public méthode

Starts the transport.
public Start ( ) : void
Résultat void

TryDeleteQueue() public méthode

public TryDeleteQueue ( string accountName ) : bool
accountName string
Résultat bool

TryDeleteUiQueue() public méthode

public TryDeleteUiQueue ( string accountName ) : bool
accountName string
Résultat bool