Inheritance: IServiceMessage
Example #1
0
        /// <summary>
        /// Asynchronously calls the SetTriggering service.
        /// </summary>
        public virtual IAsyncResult BeginSetTriggering(SetTriggeringMessage 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.SetTriggeringRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.SetTriggeringRequest, e);
            }
        }
Example #2
0
        /// <summary>
        /// The operation contract for the SetTriggering service.
        /// </summary>
        public virtual SetTriggeringResponseMessage SetTriggering(SetTriggeringMessage request)
        {
            SetTriggeringResponse response = null;

            try
            {
                // OnRequestReceived(message.SetTriggeringRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (SetTriggeringResponse)SetTriggering(request.SetTriggeringRequest);
                // OnResponseSent(response);
                return new SetTriggeringResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.SetTriggeringRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
Example #3
0
 /// <summary>
 /// The operation contract for the SetTriggering service.
 /// </summary>
 public virtual SetTriggeringResponseMessage SetTriggering(SetTriggeringMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         SetTriggeringResponse response = (SetTriggeringResponse)SetTriggering(request.SetTriggeringRequest);
         return new SetTriggeringResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.SetTriggeringRequest, e);
     }
 }
Example #4
0
 public SetTriggeringResponseMessage SetTriggering(SetTriggeringMessage request)
 {
     throw new NotImplementedException();
 }