42 references to ReceiveResult
System.ServiceModel (42)
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (3)
275
MsmqQueue.
ReceiveResult
receiveResult = MsmqQueue.
ReceiveResult
.Unknown;
285
if (MsmqQueue.
ReceiveResult
.MessageReceived == receiveResult)
System\ServiceModel\Channels\MsmqDefaultLockingQueue.cs (5)
34
public override
ReceiveResult
TryReceive(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode)
46
return
ReceiveResult
.MessageReceived;
56
return
ReceiveResult
.Timeout;
60
return
ReceiveResult
.OperationCancelled;
65
return
ReceiveResult
.OperationCancelled;
System\ServiceModel\Channels\MsmqQueue.cs (14)
398
public virtual
ReceiveResult
TryReceive(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode)
403
ReceiveResult
TryReceiveInternal(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode, int action)
413
return
ReceiveResult
.MessageReceived;
422
return
ReceiveResult
.Timeout;
426
return
ReceiveResult
.OperationCancelled;
431
return
ReceiveResult
.OperationCancelled;
614
public
ReceiveResult
TryPeek(NativeMsmqMessage message, TimeSpan timeout)
734
public
ReceiveResult
EndTryReceive(IAsyncResult result)
746
public
ReceiveResult
EndPeek(IAsyncResult result)
759
ReceiveResult
receiveResult;
871
this.receiveResult =
ReceiveResult
.MessageReceived;
879
this.receiveResult =
ReceiveResult
.Timeout;
883
this.receiveResult =
ReceiveResult
.OperationCancelled;
914
public static
ReceiveResult
End(IAsyncResult result)
System\ServiceModel\Channels\MsmqReceiveHelper.cs (10)
250
return (MsmqQueue.
ReceiveResult
.Timeout != this.queue.TryPeek(message, timeout));
268
MsmqQueue.
ReceiveResult
receiveResult = this.Queue.TryReceive(msmqMessage, timeout, transactionMode);
269
if (MsmqQueue.
ReceiveResult
.OperationCancelled == receiveResult)
271
if (MsmqQueue.
ReceiveResult
.Timeout == receiveResult)
383
MsmqQueue.
ReceiveResult
receiveResult;
423
if (MsmqQueue.
ReceiveResult
.Timeout == asyncResult.receiveResult)
425
else if (MsmqQueue.
ReceiveResult
.OperationCancelled == asyncResult.receiveResult)
459
MsmqQueue.
ReceiveResult
receiveResult = MsmqQueue.
ReceiveResult
.Unknown;
472
this.successResult = receiveResult != MsmqQueue.
ReceiveResult
.Timeout;
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (10)
125
public override
ReceiveResult
TryReceive(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode)
137
ReceiveResult
result;
143
if (result !=
ReceiveResult
.MessageReceived)
177
return
ReceiveResult
.MessageReceived;
182
return
ReceiveResult
.OperationCancelled;
330
ReceiveResult
result =
ReceiveResult
.MessageReceived;
332
while (result ==
ReceiveResult
.MessageReceived)
339
if (result ==
ReceiveResult
.MessageReceived)
348
result =
ReceiveResult
.Unknown;