C# Class NServiceBus.Unicast.Transport.ServiceBroker.ServiceBrokerTransport

Inheritance: ITransport
Mostra file Open project: jdaigle/servicebroker.net

Private Properties

Property Type Description
AddWorkerThread NServiceBus.Utils.WorkerThread
ClearFailuresForConversation void
ExtractMessages IMessage[]
ExtractXmlTransportMessage TransportMessage
GetSqlTransactionManager SqlServiceBrokerTransactionManager
HandledMaxRetries bool
IncrementFailuresForConversation void
MoveToErrorService void
OnFailedMessageProcessing bool
OnFinishedMessageProcessing bool
OnTransportMessageReceived bool
Process void
ReceiveFromQueue void

Public Methods

Method 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.

Dispose ( ) : void
GetNumberOfPendingMessages ( ) : int

Returns the number of messages in the queue.

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.

Send ( TransportMessage m, string destination ) : void

Sends a message to the specified destination.

SerializeToXml ( TransportMessage transportMessage, MemoryStream stream ) : void
SerializeTransportMessage ( TransportMessage m, MemoryStream stream ) : void
ServiceBrokerTransport ( ) : System
Start ( ) : void

Starts the transport.

Private Methods

Method Description
AddWorkerThread ( ) : NServiceBus.Utils.WorkerThread
ClearFailuresForConversation ( string conversationHandle ) : void
ExtractMessages ( XmlCDataSection data ) : IMessage[]
ExtractXmlTransportMessage ( Stream bodyStream ) : TransportMessage
GetSqlTransactionManager ( ) : SqlServiceBrokerTransactionManager
HandledMaxRetries ( string messageId ) : bool
IncrementFailuresForConversation ( string conversationHandle ) : void
MoveToErrorService ( Message message ) : void
OnFailedMessageProcessing ( ) : bool
OnFinishedMessageProcessing ( ) : bool
OnTransportMessageReceived ( TransportMessage msg ) : bool
Process ( ) : void
ReceiveFromQueue ( SqlTransaction transaction ) : void

Method Details

AbortHandlingCurrentMessage() public method

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

ChangeNumberOfWorkerThreads() public method

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

Dispose() public method

public Dispose ( ) : void
return void

GetNumberOfPendingMessages() public method

Returns the number of messages in the queue.
public GetNumberOfPendingMessages ( ) : int
return int

ReceiveMessageLater() public method

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.
return void

Send() public method

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.
return void

SerializeToXml() public method

public SerializeToXml ( TransportMessage transportMessage, MemoryStream stream ) : void
transportMessage TransportMessage
stream System.IO.MemoryStream
return void

SerializeTransportMessage() public method

public SerializeTransportMessage ( TransportMessage m, MemoryStream stream ) : void
m TransportMessage
stream System.IO.MemoryStream
return void

ServiceBrokerTransport() public method

public ServiceBrokerTransport ( ) : System
return System

Start() public method

Starts the transport.
public Start ( ) : void
return void