private IPersistentRepresentation PersistentMessageFrom(byte[] bytes) { var persistentMessage = PersistentMessage.ParseFrom(bytes); return(new Persistent( payload: PayloadFromProto(persistentMessage.Payload), sequenceNr: persistentMessage.SequenceNr, persistenceId: persistentMessage.HasPersistenceId ? persistentMessage.PersistenceId : null, isDeleted: persistentMessage.Deleted, sender: persistentMessage.HasSender ? system.Provider.ResolveActorRef(persistentMessage.Sender) : null)); }
private IPersistentRepresentation PersistentMessageFrom(byte[] bytes) { var persistentMessage = PersistentMessage.ParseFrom(bytes); return(PersistentMessageFrom(persistentMessage)); }