A class indicates the NotificationWait request type failed response body.
상속: Microsoft.Protocols.TestSuites.Common.MailboxResponseBodyBase
        /// <summary>
        /// Parse the Notification request type Failed response body.
        /// </summary>
        /// <param name="rawData">The raw data which is returned by server.</param>
        /// <returns>An instance of NotificationWaitFailedResponseBody class.</returns>
        public static NotificationWaitFailedResponseBody Parse(byte[] rawData)
        {
            NotificationWaitFailedResponseBody responseBody = new NotificationWaitFailedResponseBody();
            int index = 0;
            responseBody.StatusCode = BitConverter.ToUInt32(rawData, index);
            index += 4;
            responseBody.AuxiliaryBufferSize = BitConverter.ToUInt32(rawData, index);
            index += 4;
            responseBody.AuxiliaryBuffer = new byte[responseBody.AuxiliaryBufferSize];
            Array.Copy(rawData, index, responseBody.AuxiliaryBuffer, 0, responseBody.AuxiliaryBufferSize);

            return responseBody;
        }
예제 #2
0
        /// <summary>
        /// Parse the Notification request type Failed response body.
        /// </summary>
        /// <param name="rawData">The raw data which is returned by server.</param>
        /// <returns>An instance of NotificationWaitFailedResponseBody class.</returns>
        public static NotificationWaitFailedResponseBody Parse(byte[] rawData)
        {
            NotificationWaitFailedResponseBody responseBody = new NotificationWaitFailedResponseBody();
            int index = 0;

            responseBody.StatusCode = BitConverter.ToUInt32(rawData, index);
            index += 4;
            responseBody.AuxiliaryBufferSize = BitConverter.ToUInt32(rawData, index);
            index += 4;
            responseBody.AuxiliaryBuffer = new byte[responseBody.AuxiliaryBufferSize];
            Array.Copy(rawData, index, responseBody.AuxiliaryBuffer, 0, responseBody.AuxiliaryBufferSize);

            return(responseBody);
        }