public RemoveClientIdFromOrderRequestTrackingMiddleware( RequestTrackingOptions options, RequestDelegate next, ILogger <RequestTrackingMiddleware> logger) : base(options, next, logger) { }
/// <summary> /// Adds the <see cref="RequestTrackingMiddleware"/> type to the application's request pipeline. /// </summary> /// <param name="app">The builder to configure the application's request pipeline.</param> /// <param name="configureOptions">The optional options to configure the behavior of the request tracking.</param> public static IApplicationBuilder UseRequestTracking <TMiddleware>( this IApplicationBuilder app, Action <RequestTrackingOptions> configureOptions = null) where TMiddleware : RequestTrackingMiddleware { Guard.NotNull(app, nameof(app)); var options = new RequestTrackingOptions(); configureOptions?.Invoke(options); return(app.UseMiddleware <TMiddleware>(options)); }
/// <summary> /// Initializes a new instance of the <see cref="RequestTrackingMiddleware"/> class. /// </summary> /// <param name="options">The options to control the behavior of the request tracking.</param> /// <param name="next">The next pipeline function to process the HTTP context.</param> /// <param name="logger">The logger to write diagnostic messages during the request tracking.</param> public NoHeadersRequestTrackingMiddleware(RequestTrackingOptions options, RequestDelegate next, ILogger <RequestTrackingMiddleware> logger) : base(options, next, logger) { }