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