private void AddErrorHandler(ChannelDispatcher channelDispatcher)
 {
     if (!channelDispatcher.IncludeExceptionDetailInFaults &&
         !ContainsExceptionShieldingErrorHandler(channelDispatcher.ErrorHandlers) &&
         !ContainsMetadataEndpoint(channelDispatcher.Endpoints))
     {
         IErrorHandler errorHandler = new ExceptionShieldingErrorHandler(exceptionPolicyName);
         channelDispatcher.ErrorHandlers.Add(errorHandler);
     }
 }
 private void AddErrorHandler(ChannelDispatcher channelDispatcher)
 {
     if (!channelDispatcher.IncludeExceptionDetailInFaults &&
         !ContainsExceptionShieldingErrorHandler(channelDispatcher.ErrorHandlers) &&
         !ContainsMetadataEndpoint(channelDispatcher.Endpoints))
     {
         IErrorHandler errorHandler = new ExceptionShieldingErrorHandler(exceptionPolicyName);
         channelDispatcher.ErrorHandlers.Add(errorHandler);
     }
 }