C# Class NServiceBus.ReceiveStrategy

Mostrar archivo Open project: Particular/NServiceBus

Public Methods

Method Description
Init ( System.Messaging.MessageQueue inputQueue, System.Messaging.MessageQueue errorQueue, Task>.Func onMessage, Func onError, CriticalError criticalError ) : void
ReceiveMessage ( ) : Task

Protected Methods

Method Description
HandleError ( System.Messaging.Message message, string>.Dictionary headers, Exception exception, TransportTransaction transportTransaction, int processingAttempts ) : Task
MovePoisonMessageToErrorQueue ( System.Messaging.Message message, System.Messaging.MessageQueueTransaction transaction ) : void
MovePoisonMessageToErrorQueue ( System.Messaging.Message message, MessageQueueTransactionType transactionType ) : void
TryExtractHeaders ( System.Messaging.Message message, string>.Dictionary &headers ) : bool
TryProcessMessage ( string messageId, string>.Dictionary headers, Stream bodyStream, TransportTransaction transaction ) : Task
TryReceive ( System.Messaging.MessageQueueTransaction transaction, System.Messaging.Message &message ) : bool
TryReceive ( MessageQueueTransactionType transactionType, System.Messaging.Message &message ) : bool

Private Methods

Method Description
ReadStream ( Stream bodyStream ) : Task

Method Details

HandleError() protected method

protected HandleError ( System.Messaging.Message message, string>.Dictionary headers, Exception exception, TransportTransaction transportTransaction, int processingAttempts ) : Task
message System.Messaging.Message
headers string>.Dictionary
exception System.Exception
transportTransaction TransportTransaction
processingAttempts int
return Task

Init() public method

public Init ( System.Messaging.MessageQueue inputQueue, System.Messaging.MessageQueue errorQueue, Task>.Func onMessage, Func onError, CriticalError criticalError ) : void
inputQueue System.Messaging.MessageQueue
errorQueue System.Messaging.MessageQueue
onMessage Task>.Func
onError Func
criticalError CriticalError
return void

MovePoisonMessageToErrorQueue() protected method

protected MovePoisonMessageToErrorQueue ( System.Messaging.Message message, System.Messaging.MessageQueueTransaction transaction ) : void
message System.Messaging.Message
transaction System.Messaging.MessageQueueTransaction
return void

MovePoisonMessageToErrorQueue() protected method

protected MovePoisonMessageToErrorQueue ( System.Messaging.Message message, MessageQueueTransactionType transactionType ) : void
message System.Messaging.Message
transactionType MessageQueueTransactionType
return void

ReceiveMessage() public abstract method

public abstract ReceiveMessage ( ) : Task
return Task

TryExtractHeaders() protected method

protected TryExtractHeaders ( System.Messaging.Message message, string>.Dictionary &headers ) : bool
message System.Messaging.Message
headers string>.Dictionary
return bool

TryProcessMessage() protected method

protected TryProcessMessage ( string messageId, string>.Dictionary headers, Stream bodyStream, TransportTransaction transaction ) : Task
messageId string
headers string>.Dictionary
bodyStream Stream
transaction TransportTransaction
return Task

TryReceive() protected method

protected TryReceive ( System.Messaging.MessageQueueTransaction transaction, System.Messaging.Message &message ) : bool
transaction System.Messaging.MessageQueueTransaction
message System.Messaging.Message
return bool

TryReceive() protected method

protected TryReceive ( MessageQueueTransactionType transactionType, System.Messaging.Message &message ) : bool
transactionType MessageQueueTransactionType
message System.Messaging.Message
return bool