private void Handle(MsgSessionId pckt) { if (pckt.Id == Guid.Empty) { OnSessionRestoreFailed(); } else { if (this.Id == Guid.Empty) { this.Id = pckt.Id; } else if (this.Id != pckt.Id) { throw new NotImplementedException(""); } OnConnectedSuccessful(); } }
private void Handle(MsgSessionId pckt) { OnRestoreSession(pckt.Id); }