예제 #1
0
 /// <summary>
 /// Called prior to the response message being sent.
 /// </summary>
 /// <param name="error">
 /// Exception that was raised.
 /// </param>
 /// <param name="version">
 /// Message version.
 /// </param>
 /// <param name="fault">
 /// Fault.
 /// </param>
 public void ProvideFault(Exception error, MessageVersion version, ref Message fault)
 {
     /////
     // Ensure that the request context has been disposed when an exception is thrown.
     /////
     ServicesHelper.FreeRequestContextData( );
 }
 /// <summary>
 /// Injects a call to 'ServicesHelper.FreeRequestContextData( )' after the WCF method call has completed.
 /// </summary>
 /// <param name="operationName">
 /// Name of the WCF method being called.
 /// </param>
 /// <param name="outputs">
 /// Parameters being passed out of the method.
 /// </param>
 /// <param name="returnValue">
 /// Methods return value.
 /// </param>
 /// <param name="correlationState">
 /// Correlation state returned by the BeforeCall method.
 /// </param>
 public void AfterCall(string operationName, object [] outputs, object returnValue, object correlationState)
 {
     ServicesHelper.FreeRequestContextData( );
 }