本文整理匯總了C#中Orleans.Runtime.ActivationData.DequeueAllWaitingMessages方法的典型用法代碼示例。如果您正苦於以下問題:C# ActivationData.DequeueAllWaitingMessages方法的具體用法?C# ActivationData.DequeueAllWaitingMessages怎麽用?C# ActivationData.DequeueAllWaitingMessages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Orleans.Runtime.ActivationData
的用法示例。
在下文中一共展示了ActivationData.DequeueAllWaitingMessages方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: RerouteAllQueuedMessages
private void RerouteAllQueuedMessages(ActivationData activation, ActivationAddress forwardingAddress, string failedOperation, Exception exc = null)
{
lock (activation)
{
List<Message> msgs = activation.DequeueAllWaitingMessages();
if (msgs == null || msgs.Count <= 0) return;
if (logger.IsVerbose) logger.Verbose(ErrorCode.Catalog_RerouteAllQueuedMessages, String.Format("RerouteAllQueuedMessages: {0} msgs from Invalid activation {1}.", msgs.Count(), activation));
dispatcher.ProcessRequestsToInvalidActivation(msgs, activation.Address, forwardingAddress, failedOperation, exc);
}
}