本文整理汇总了C#中Orleans.Runtime.Message.GetTargetHistory方法的典型用法代码示例。如果您正苦于以下问题:C# Message.GetTargetHistory方法的具体用法?C# Message.GetTargetHistory怎么用?C# Message.GetTargetHistory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Orleans.Runtime.Message
的用法示例。
在下文中一共展示了Message.GetTargetHistory方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TryResendMessage
private bool TryResendMessage(Message message)
{
if (!message.MayResend(config))
{
return false;
}
if (logger.IsVerbose) logger.Verbose("Resend {0}", message);
message.ResendCount = message.ResendCount + 1;
message.SetMetadata(Message.Metadata.TARGET_HISTORY, message.GetTargetHistory());
if (!message.TargetGrain.IsSystemTarget)
{
message.RemoveHeader(Message.Header.TARGET_ACTIVATION);
message.RemoveHeader(Message.Header.TARGET_SILO);
}
transport.SendMessage(message);
return true;
}
示例2: TryResendMessage
private bool TryResendMessage(Message message)
{
if (!message.MayResend(config))
{
return false;
}
if (logger.IsVerbose) logger.Verbose("Resend {0}", message);
message.ResendCount = message.ResendCount + 1;
message.TargetHistory = message.GetTargetHistory();
if (!message.TargetGrain.IsSystemTarget)
{
message.TargetActivation = null;
message.TargetSilo = null;
message.ClearTargetAddress();
}
transport.SendMessage(message);
return true;
}
示例3: ResendMessageImpl
private void ResendMessageImpl(Message message, ActivationAddress forwardingAddress = null)
{
if (logger.IsVerbose) logger.Verbose("Resend {0}", message);
message.SetMetadata(Message.Metadata.TARGET_HISTORY, message.GetTargetHistory());
if (message.TargetGrain.IsSystemTarget)
{
dispatcher.SendSystemTargetMessage(message);
}
else if (forwardingAddress != null)
{
message.TargetAddress = forwardingAddress;
message.RemoveHeader(Message.Header.IS_NEW_PLACEMENT);
dispatcher.Transport.SendMessage(message);
}
else
{
message.RemoveHeader(Message.Header.TARGET_ACTIVATION);
message.RemoveHeader(Message.Header.TARGET_SILO);
dispatcher.SendMessage(message);
}
}
示例4: ResendMessageImpl
private void ResendMessageImpl(Message message, ActivationAddress forwardingAddress = null)
{
if (logger.IsVerbose) logger.Verbose("Resend {0}", message);
message.TargetHistory = message.GetTargetHistory();
if (message.TargetGrain.IsSystemTarget)
{
dispatcher.SendSystemTargetMessage(message);
}
else if (forwardingAddress != null)
{
message.TargetAddress = forwardingAddress;
message.IsNewPlacement = false;
dispatcher.Transport.SendMessage(message);
}
else
{
message.TargetActivation = null;
message.TargetSilo = null;
message.ClearTargetAddress();
dispatcher.SendMessage(message);
}
}