Exemple #1
0
        public void ApplyDispatchBehavior(OperationDescription operationDescription, System.ServiceModel.Dispatcher.DispatchOperation dispatchOperation)
        {
            // Replace the default invoker with our custom ErrorHandlingInvoker
            ErrorHandlingInvoker errInvoker = new ErrorHandlingInvoker(dispatchOperation.Invoker);

            dispatchOperation.Invoker = errInvoker;
        }
 public void ApplyDispatchBehavior(OperationDescription operationDescription, System.ServiceModel.Dispatcher.DispatchOperation dispatchOperation)
 {
     // Replace the default invoker with our custom ErrorHandlingInvoker
     ErrorHandlingInvoker errInvoker = new ErrorHandlingInvoker(dispatchOperation.Invoker);
     dispatchOperation.Invoker = errInvoker;
 }