/// <summary> /// Asynchronously calls the Republish service. /// </summary> public virtual IAsyncResult BeginRepublish(RepublishMessage 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.RepublishRequest); } catch (Exception e) { throw CreateSoapFault(message.RepublishRequest, e); } }
/// <summary> /// The operation contract for the Republish service. /// </summary> public virtual RepublishResponseMessage Republish(RepublishMessage request) { RepublishResponse response = null; try { // OnRequestReceived(message.RepublishRequest); SetRequestContext(RequestEncoding.Xml); response = (RepublishResponse)Republish(request.RepublishRequest); // OnResponseSent(response); return new RepublishResponseMessage(response); } catch (Exception e) { Exception fault = CreateSoapFault(request.RepublishRequest, e); // OnResponseFaultSent(fault); throw fault; } }
/// <summary> /// The operation contract for the Republish service. /// </summary> public virtual RepublishResponseMessage Republish(RepublishMessage request) { try { SetRequestContext(RequestEncoding.Xml); RepublishResponse response = (RepublishResponse)Republish(request.RepublishRequest); return new RepublishResponseMessage(response); } catch (Exception e) { throw CreateSoapFault(request.RepublishRequest, e); } }
public RepublishResponseMessage Republish(RepublishMessage request) { throw new NotImplementedException(); }