// public static T SendSynchronousMessage<T>(IActorRef actorRef, object message, TimeSpan timeout) // { // ColoredConsole.LogSendSynchronousMessage(message.GetType().Name, message.ToString(), actorRef); // return actorRef.Ask<T>(message, timeout).Result; // } public static T SendSynchronousMessage <T>(ActorSelection actorSelection, object message, TimeSpan timeout) { ColoredConsole.LogSendSynchronousMessage(message.GetType().Name, message.ToString(), actorSelection); return(actorSelection.Ask <T>(message, timeout).Result); }