/// <summary> /// Initializes a new instance. /// </summary> public LoggerHttpMiddleware( FluentHttpMiddlewareDelegate next, FluentHttpMiddlewareClientContext context, LoggerHttpMiddlewareOptions options, ILoggerFactory loggerFactory ) { _next = next; _options = options; _logger = loggerFactory.CreateLogger($"{typeof(LoggerHttpMiddleware).Namespace}.{context.Identifier}.Logger"); }
/// <summary> /// Initializes a new instance. /// </summary> public LoggerHttpMiddleware(FluentHttpRequestDelegate next, LoggerHttpMiddlewareOptions options, ILogger <LoggerHttpMiddleware> logger) { _next = next; _options = options; _logger = logger; }