public static void ExcludeRequests(this IDiagnosticsConfigurationExpression config,
                                    Func <CurrentRequest, bool> shouldExclude)
 {
     config.ExcludeRequests(new LambdaRequestHistoryCacheFilter(shouldExclude));
 }
 public static void ApplyFilter <TFilter>(this IDiagnosticsConfigurationExpression config)
     where TFilter : IRequestHistoryCacheFilter, new()
 {
     config.ExcludeRequests(new TFilter());
 }