Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.Client_MCS_Channel_Join_Request.ToBytes C# (CSharp) 메소드

ToBytes() 공개 메소드

Encode this structure into byte array.
public ToBytes ( ) : byte[]
리턴 byte[]
        public override byte[] ToBytes()
        {
            List<byte> totalBuffer = new List<byte>();

            RdpbcgrEncoder.EncodeStructure(totalBuffer, tpktHeader);
            RdpbcgrEncoder.EncodeStructure(totalBuffer, x224Data);

            ChannelJoinRequest joinRequest = new ChannelJoinRequest(new UserId(userChannelId), new ChannelId(mcsChannelId));
            DomainMCSPDU mcsDomain = new DomainMCSPDU(DomainMCSPDU.channelJoinRequest, joinRequest);
            RdpbcgrEncoder.EncodeDomainMcsPdu(totalBuffer, mcsDomain);

            return RdpbcgrUtility.ToBytes(totalBuffer);
        }