C# Класс DotNetWorkQueue.Queue.RpcMethodQueue

Allows executing remote calls as a linq expression and returning the result of the expression.
Наследование: IRpcMethodQueue
Показать файл Открыть проект

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

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

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

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

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

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

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

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

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

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

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

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

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

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

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

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

Starts the queue.
This must be called after setting any configuration options, and before sending any messages.
public Start ( ) : void
Результат void