Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
        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;
            }
        }