public void ReadFrom(IXdrReader reader) { RejectStatus = (RejectStatus)reader.ReadInt(); switch (RejectStatus) { case RejectStatus.RpcVersionMismatch: MismatchInfo = new MismatchInfo(reader); break; case RejectStatus.AuthenticationError: AuthenticationStatus = (AuthenticationStatus)reader.ReadInt(); break; } }
public void WriteTo(IXdrWriter writer) { writer.Write((int)RejectStatus); switch (RejectStatus) { case RejectStatus.RpcVersionMismatch: MismatchInfo?.WriteTo(writer); break; case RejectStatus.AuthenticationError: writer.Write((int)AuthenticationStatus); break; } }
public void ReadFrom(IXdrReader reader) { AcceptStatus = (AcceptStatus)reader.ReadInt(); switch (AcceptStatus) { case AcceptStatus.Success: break; case AcceptStatus.ProgramMismatch: MismatchInfo = new MismatchInfo(reader); break; default: break; } }