private void ResendMessageImpl(Message message, ActivationAddress forwardingAddress = null) { if (logger.IsEnabled(LogLevel.Debug)) { logger.Debug("Resend {0}", message); } message.TargetHistory = message.GetTargetHistory(); if (message.TargetGrain.IsSystemTarget) { this.SendSystemTargetMessage(message); } else if (forwardingAddress != null) { message.TargetAddress = forwardingAddress; message.IsNewPlacement = false; this.Transport.SendMessage(message); } else { message.TargetActivation = null; message.TargetSilo = null; message.ClearTargetAddress(); this.SendMessage(message); } }
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); } }
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; }
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); } }