public HttpCommunicationExceptionHandler(
     ILoggerFactory loggerFactory,
     IOptions <HttpCommunicationOptions> options)
 {
     _logger  = loggerFactory.CreateLogger(HttpCommunicationDefaults.LoggerName);
     _options = options.Value;
 }
        public HttpCommunicationClientFactory(
            ServicePartitionResolver resolver,
            IEnumerable <IExceptionHandler> exceptionHandlers,
            IOptions <HttpCommunicationOptions> options,
            ILoggerFactory loggerFactory)
            : base(resolver, exceptionHandlers)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            if (loggerFactory == null)
            {
                throw new ArgumentNullException(nameof(loggerFactory));
            }

            _options = options.Value;
            _logger  = loggerFactory.CreateLogger(HttpCommunicationDefaults.LoggerName);
        }