Inheritance: IServiceMessage
示例#1
0
        /// <summary>
        /// Asynchronously calls the HistoryRead service.
        /// </summary>
        public virtual IAsyncResult BeginHistoryRead(HistoryReadMessage message, AsyncCallback callback, object callbackData)
        {
            try
            {
                // check for bad data.
                if (message == null) throw new ArgumentNullException("message");

                // set the request context.
                SetRequestContext(RequestEncoding.Xml);

                // create handler.
                ProcessRequestAsyncResult result = new ProcessRequestAsyncResult(this, callback, callbackData, 0);
                return result.BeginProcessRequest(SecureChannelContext.Current, message.HistoryReadRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.HistoryReadRequest, e);
            }
        }
示例#2
0
        /// <summary>
        /// The operation contract for the HistoryRead service.
        /// </summary>
        public virtual HistoryReadResponseMessage HistoryRead(HistoryReadMessage request)
        {
            HistoryReadResponse response = null;

            try
            {
                // OnRequestReceived(message.HistoryReadRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (HistoryReadResponse)HistoryRead(request.HistoryReadRequest);
                // OnResponseSent(response);
                return new HistoryReadResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.HistoryReadRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
示例#3
0
 /// <summary>
 /// The operation contract for the HistoryRead service.
 /// </summary>
 public virtual HistoryReadResponseMessage HistoryRead(HistoryReadMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         HistoryReadResponse response = (HistoryReadResponse)HistoryRead(request.HistoryReadRequest);
         return new HistoryReadResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.HistoryReadRequest, e);
     }
 }
示例#4
0
 public HistoryReadResponseMessage HistoryRead(HistoryReadMessage request)
 {
     throw new NotImplementedException();
 }