Example #1
0
        /// <summary>
        /// Asynchronously calls the SetPublishingMode service.
        /// </summary>
        public virtual IAsyncResult BeginSetPublishingMode(SetPublishingModeMessage 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.SetPublishingModeRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.SetPublishingModeRequest, e);
            }
        }
Example #2
0
        /// <summary>
        /// The operation contract for the SetPublishingMode service.
        /// </summary>
        public virtual SetPublishingModeResponseMessage SetPublishingMode(SetPublishingModeMessage request)
        {
            SetPublishingModeResponse response = null;

            try
            {
                // OnRequestReceived(message.SetPublishingModeRequest);

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