Пример #1
0
        /// <summary>
        /// Asynchronously calls the HistoryUpdate service.
        /// </summary>
        public virtual IAsyncResult BeginHistoryUpdate(HistoryUpdateMessage 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.HistoryUpdateRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.HistoryUpdateRequest, e);
            }
        }
Пример #2
0
        /// <summary>
        /// The operation contract for the HistoryUpdate service.
        /// </summary>
        public virtual HistoryUpdateResponseMessage HistoryUpdate(HistoryUpdateMessage request)
        {
            HistoryUpdateResponse response = null;

            try
            {
                // OnRequestReceived(message.HistoryUpdateRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (HistoryUpdateResponse)HistoryUpdate(request.HistoryUpdateRequest);
                // OnResponseSent(response);
                return new HistoryUpdateResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.HistoryUpdateRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
Пример #3
0
 /// <summary>
 /// The operation contract for the HistoryUpdate service.
 /// </summary>
 public virtual HistoryUpdateResponseMessage HistoryUpdate(HistoryUpdateMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         HistoryUpdateResponse response = (HistoryUpdateResponse)HistoryUpdate(request.HistoryUpdateRequest);
         return new HistoryUpdateResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.HistoryUpdateRequest, e);
     }
 }
Пример #4
0
 public HistoryUpdateResponseMessage HistoryUpdate(HistoryUpdateMessage request)
 {
     throw new NotImplementedException();
 }