GetCurrentSenderOrNoSender() public static méthode

public static GetCurrentSenderOrNoSender ( ) : IActorRef
Résultat IActorRef
Exemple #1
0
        /// <summary>
        /// Forwards the message using the current Sender
        /// </summary>
        /// <param name="receiver">The actor that receives the forward</param>
        /// <param name="message">The message to forward</param>
        public static void Forward(this IActorRef receiver, object message)
        {
            var sender = ActorCell.GetCurrentSenderOrNoSender();

            receiver.Tell(message, sender);
        }
Exemple #2
0
        /// <summary>
        /// Forwards the message using the current Sender
        /// </summary>
        /// <param name="message"></param>
        public void Forward(object message)
        {
            var sender = ActorCell.GetCurrentSenderOrNoSender();

            TellInternal(message, sender);
        }