Exemple #1
0
        /// <summary>
        /// Asynchronously calls the ModifySubscription service.
        /// </summary>
        public virtual IAsyncResult BeginModifySubscription(ModifySubscriptionMessage 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.ModifySubscriptionRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.ModifySubscriptionRequest, e);
            }
        }
Exemple #2
0
        /// <summary>
        /// The operation contract for the ModifySubscription service.
        /// </summary>
        public virtual ModifySubscriptionResponseMessage ModifySubscription(ModifySubscriptionMessage request)
        {
            ModifySubscriptionResponse response = null;

            try
            {
                // OnRequestReceived(message.ModifySubscriptionRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (ModifySubscriptionResponse)ModifySubscription(request.ModifySubscriptionRequest);
                // OnResponseSent(response);
                return new ModifySubscriptionResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.ModifySubscriptionRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
Exemple #3
0
 /// <summary>
 /// The operation contract for the ModifySubscription service.
 /// </summary>
 public virtual ModifySubscriptionResponseMessage ModifySubscription(ModifySubscriptionMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         ModifySubscriptionResponse response = (ModifySubscriptionResponse)ModifySubscription(request.ModifySubscriptionRequest);
         return new ModifySubscriptionResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.ModifySubscriptionRequest, e);
     }
 }
Exemple #4
0
 public ModifySubscriptionResponseMessage ModifySubscription(ModifySubscriptionMessage request)
 {
     throw new NotImplementedException();
 }