C# Класс NServiceBus.ReceiveStrategy

Показать файл Открыть проект

Открытые методы

Метод Описание
Init ( System.Messaging.MessageQueue inputQueue, System.Messaging.MessageQueue errorQueue, Task>.Func onMessage, Func onError, CriticalError criticalError ) : void
ReceiveMessage ( ) : Task

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
ReadStream ( Stream bodyStream ) : Task

Описание методов

HandleError() защищенный Метод

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
Результат Task

Init() публичный Метод

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
Результат void

MovePoisonMessageToErrorQueue() защищенный Метод

protected MovePoisonMessageToErrorQueue ( System.Messaging.Message message, System.Messaging.MessageQueueTransaction transaction ) : void
message System.Messaging.Message
transaction System.Messaging.MessageQueueTransaction
Результат void

MovePoisonMessageToErrorQueue() защищенный Метод

protected MovePoisonMessageToErrorQueue ( System.Messaging.Message message, MessageQueueTransactionType transactionType ) : void
message System.Messaging.Message
transactionType MessageQueueTransactionType
Результат void

ReceiveMessage() публичный абстрактный Метод

public abstract ReceiveMessage ( ) : Task
Результат Task

TryExtractHeaders() защищенный Метод

protected TryExtractHeaders ( System.Messaging.Message message, string>.Dictionary &headers ) : bool
message System.Messaging.Message
headers string>.Dictionary
Результат bool

TryProcessMessage() защищенный Метод

protected TryProcessMessage ( string messageId, string>.Dictionary headers, Stream bodyStream, TransportTransaction transaction ) : Task
messageId string
headers string>.Dictionary
bodyStream Stream
transaction TransportTransaction
Результат Task

TryReceive() защищенный Метод

protected TryReceive ( System.Messaging.MessageQueueTransaction transaction, System.Messaging.Message &message ) : bool
transaction System.Messaging.MessageQueueTransaction
message System.Messaging.Message
Результат bool

TryReceive() защищенный Метод

protected TryReceive ( MessageQueueTransactionType transactionType, System.Messaging.Message &message ) : bool
transactionType MessageQueueTransactionType
message System.Messaging.Message
Результат bool