Example #1
0
        public LoggingEncoder(MessageEncoder innerEncoder, SoapLoggerSettings settings)
        {
            _innerEncoder = innerEncoder;
            _settings     = settings;

            if (_settings.UseCustomHandler)
            {
                _handler = new HandlerCustom.HandlerCustom(_settings);
            }
            else
            {
                _handler = new HandlerDefault(_settings);
            }
        }
Example #2
0
        public LoggingEncoder(LoggingEncoderFactory factory)
        {
            _factory      = factory;
            _innerEncoder = factory.InnerMessageFactory.Encoder;
            _contentType  = factory.MediaType;
            _settings     = factory.Settings;

            if (factory.Settings.UseCustomHandler)
            {
                _handler = new HandlerCustom.HandlerCustom(_settings);
            }
            else
            {
                _handler = new HandlerDefault(_settings);
            }
        }