C# Class DotNetWorkQueue.Queue.RpcMethodQueue

Allows executing remote calls as a linq expression and returning the result of the expression.
Inheritance: IRpcMethodQueue
ファイルを表示 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Dispose ( ) : void

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

RpcMethodQueue ( MessageExpression>.IRpcQueue queue, IExpressionSerializer serializer, ICompositeSerialization compositeSerialization ) : System

Initializes a new instance of the RpcMethodQueue class.

Send ( Expression method, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : IReceivedMessage

Sends the specified linqExpression for execution.

Your expression must return a type of object, or the JSON serializer may throw casting errors

Send ( LinqExpressionToRun linqExpression, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : IReceivedMessage

Sends the specified linqExpression for execution.

Your expression must return a type of object, or the JSON serializer may throw casting errors

SendAsync ( Expression method, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : Task>

Sends the specified linqExpression for execution.

Your expression must return a type of object, or the JSON serializer may throw casting errors

SendAsync ( LinqExpressionToRun linqExpression, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : Task>

Sends the specified linqExpression for execution.

Your expression must return a type of object, or the JSON serializer may throw casting errors

Start ( ) : void

Starts the queue.

This must be called after setting any configuration options, and before sending any messages.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

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

RpcMethodQueue() public method

Initializes a new instance of the RpcMethodQueue class.
public RpcMethodQueue ( MessageExpression>.IRpcQueue queue, IExpressionSerializer serializer, ICompositeSerialization compositeSerialization ) : System
queue MessageExpression>.IRpcQueue The queue.
serializer IExpressionSerializer The serializer.
compositeSerialization ICompositeSerialization The composite serialization.
return System

Send() public method

Sends the specified linqExpression for execution.
Your expression must return a type of object, or the JSON serializer may throw casting errors
public Send ( Expression method, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : IReceivedMessage
method Expression The linqExpression.
timeOut System.TimeSpan The time out.
data IAdditionalMessageData The data.
return IReceivedMessage

Send() public method

Sends the specified linqExpression for execution.
Your expression must return a type of object, or the JSON serializer may throw casting errors
public Send ( LinqExpressionToRun linqExpression, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : IReceivedMessage
linqExpression DotNetWorkQueue.Messages.LinqExpressionToRun The linqExpression.
timeOut System.TimeSpan The time out.
data IAdditionalMessageData The data.
return IReceivedMessage

SendAsync() public method

Sends the specified linqExpression for execution.
Your expression must return a type of object, or the JSON serializer may throw casting errors
public SendAsync ( Expression method, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : Task>
method Expression The linqExpression.
timeOut System.TimeSpan The time out.
data IAdditionalMessageData The data.
return Task>

SendAsync() public method

Sends the specified linqExpression for execution.
Your expression must return a type of object, or the JSON serializer may throw casting errors
public SendAsync ( LinqExpressionToRun linqExpression, System.TimeSpan timeOut, IAdditionalMessageData data = null ) : Task>
linqExpression DotNetWorkQueue.Messages.LinqExpressionToRun The linqExpression.
timeOut System.TimeSpan The time out.
data IAdditionalMessageData The data.
return Task>

Start() public method

Starts the queue.
This must be called after setting any configuration options, and before sending any messages.
public Start ( ) : void
return void