A base class for UA endpoints.
Inheritance: IEndpointBase, ITransportListenerCallback
Beispiel #1
0
 /// <summary>
 /// Saves an exception as response.
 /// </summary>
 /// <param name="e">The exception.</param>
 private IServiceResponse SaveExceptionAsResponse(Exception e)
 {
     try {
         return(EndpointBase.CreateFault(m_request, e));
     } catch (Exception e2) {
         return(EndpointBase.CreateFault(null, e2));
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessRequestAsyncResult"/> class.
 /// </summary>
 /// <param name="endpoint">The endpoint being called.</param>
 /// <param name="callback">The callback to use when the operation completes.</param>
 /// <param name="callbackData">The callback data.</param>
 /// <param name="timeout">The timeout in milliseconds</param>
 public ProcessRequestAsyncResult(
     EndpointBase endpoint,
     AsyncCallback callback,
     object callbackData,
     int timeout)
     :
     base(callback, callbackData, timeout)
 {
     m_endpoint = endpoint;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessRequestAsyncResult"/> class.
 /// </summary>
 /// <param name="endpoint">The endpoint being called.</param>
 /// <param name="callback">The callback to use when the operation completes.</param>
 /// <param name="callbackData">The callback data.</param>
 /// <param name="timeout">The timeout in milliseconds</param>
 public ProcessRequestAsyncResult(
     EndpointBase endpoint,
     AsyncCallback callback,
     object callbackData,
     int timeout)
 :
     base(callback, callbackData, timeout)
 {
     m_endpoint = endpoint;
 }