Пример #1
0
        /// <summary>
        /// Saves the raw request to disk
        /// </summary>
        /// <param name="requestId"></param>
        /// <param name="data"></param>
        public void SaveRequest(int requestId, byte[] data)
        {
            RequestResponseBytes reqData = new RequestResponseBytes();

            reqData.AddToRequest(data);
            SaveRequest(requestId, reqData);
        }
Пример #2
0
        /// <summary>
        /// Save the raw request with the specified response
        /// </summary>
        /// <param name="requestId"></param>
        /// <param name="request"></param>
        /// <param name="response"></param>
        public void SaveRequestResponse(int requestId, byte[] request, byte[] response)
        {
            RequestResponseBytes data = new RequestResponseBytes();

            data.AddToRequest(request);
            data.AddToResponse(response);

            SaveRequest(requestId, data);
            SaveResponse(requestId, data);
        }