private IActorRef ActorRefMessageFromBinary(byte[] binary) { using (var stream = new MemoryStream(binary, false)) { return(ResolveActorRef(ActorRefMessage.ParseFrom(stream).Ref)); } }
private ActorRefMessage ActorRefMessageToProto(IActorRef actorRef) { return(ActorRefMessage.CreateBuilder().SetRef(Akka.Serialization.Serialization.SerializedActorPath(actorRef)).Build()); }