상속: IServiceMessage
예제 #1
0
        /// <summary>
        /// Asynchronously calls the DeleteReferences service.
        /// </summary>
        public virtual IAsyncResult BeginDeleteReferences(DeleteReferencesMessage 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.DeleteReferencesRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.DeleteReferencesRequest, e);
            }
        }
예제 #2
0
        /// <summary>
        /// The operation contract for the DeleteReferences service.
        /// </summary>
        public virtual DeleteReferencesResponseMessage DeleteReferences(DeleteReferencesMessage request)
        {
            DeleteReferencesResponse response = null;

            try
            {
                // OnRequestReceived(message.DeleteReferencesRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (DeleteReferencesResponse)DeleteReferences(request.DeleteReferencesRequest);
                // OnResponseSent(response);
                return new DeleteReferencesResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.DeleteReferencesRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
예제 #3
0
 /// <summary>
 /// The operation contract for the DeleteReferences service.
 /// </summary>
 public virtual DeleteReferencesResponseMessage DeleteReferences(DeleteReferencesMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         DeleteReferencesResponse response = (DeleteReferencesResponse)DeleteReferences(request.DeleteReferencesRequest);
         return new DeleteReferencesResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.DeleteReferencesRequest, e);
     }
 }
예제 #4
0
 public DeleteReferencesResponseMessage DeleteReferences(DeleteReferencesMessage request)
 {
     throw new NotImplementedException();
 }