Example #1
0
        /// <summary>
        /// Asynchronously calls the TransferSubscriptions service.
        /// </summary>
        public virtual IAsyncResult BeginTransferSubscriptions(TransferSubscriptionsMessage 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.TransferSubscriptionsRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.TransferSubscriptionsRequest, e);
            }
        }
Example #2
0
        /// <summary>
        /// The operation contract for the TransferSubscriptions service.
        /// </summary>
        public virtual TransferSubscriptionsResponseMessage TransferSubscriptions(TransferSubscriptionsMessage request)
        {
            TransferSubscriptionsResponse response = null;

            try
            {
                // OnRequestReceived(message.TransferSubscriptionsRequest);

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