C# Class DotNetWorkQueue.Messages.MessageMethodHandling

Handles processing of linq expression tree messages.
Inheritance: IMessageMethodHandling
Mostra file Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

HandleExecution ( IReceivedMessage receivedMessage, IWorkerNotification workerNotification ) : void

Handles processing of linq expression tree messages.

MessageMethodHandling ( IExpressionSerializer serializer, IQueueContainer queueContainer, ILogFactory log, ILinqCompiler linqCompiler, ICompositeSerialization compositeSerialization ) : System

Initializes a new instance of the MessageMethodHandling class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Private Methods

Method Description
CreateRpcModuleIfNeeded ( IConnectionInformation connection ) : void

Creates an RPC module for sending responses if one does not already exist.

The connection is used as the key

HandleAction ( Action action, IReceivedMessage receivedMessage, IWorkerNotification workerNotification ) : void

Runs a compiled linq expression.

HandleAction ( IReceivedMessage receivedMessage, IWorkerNotification workerNotification ) : void

De-serializes and runs a compiled linq expression.

HandleFunction ( Func function, IReceivedMessage receivedMessage, IWorkerNotification workerNotification ) : void

De-serializes and runs a compiled linq func expression.

HandleFunction ( IReceivedMessage receivedMessage, IWorkerNotification workerNotification ) : void

De-serializes and runs a compiled linq func expression.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

HandleExecution() public method

Handles processing of linq expression tree messages.
public HandleExecution ( IReceivedMessage receivedMessage, IWorkerNotification workerNotification ) : void
receivedMessage IReceivedMessage The received message.
workerNotification IWorkerNotification The worker notification.
return void

MessageMethodHandling() public method

Initializes a new instance of the MessageMethodHandling class.
public MessageMethodHandling ( IExpressionSerializer serializer, IQueueContainer queueContainer, ILogFactory log, ILinqCompiler linqCompiler, ICompositeSerialization compositeSerialization ) : System
serializer IExpressionSerializer The serializer.
queueContainer IQueueContainer The queue container.
log ILogFactory The log.
linqCompiler ILinqCompiler The method compiler.
compositeSerialization ICompositeSerialization The composite serialization.
return System

ThrowIfDisposed() protected method

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
return void