C# Class DotNetWorkQueue.Queue.RpcMethodQueue

Allows executing remote calls as a linq expression and returning the result of the expression.
Inheritance: IRpcMethodQueue
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

RpcMethodQueue() public méthode

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.
Résultat System

Send() public méthode

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.
Résultat IReceivedMessage

Send() public méthode

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.
Résultat IReceivedMessage

SendAsync() public méthode

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.
Résultat Task>

SendAsync() public méthode

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.
Résultat Task>

Start() public méthode

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