Class PathDeepFilteringExtensions
Inherited Members
Namespace: Coree.NETASP.Middleware.PathDeep
Assembly: Coree.NETASP.dll
Syntax
public static class PathDeepFilteringExtensions
Methods
| Edit this page View SourceAddPathDeepFiltering(IServiceCollection, int, bool, int, int)
Adds and configures the HostNameFilteringMiddleware options.
Declaration
public static IServiceCollection AddPathDeepFiltering(this IServiceCollection services, int pathDeepLimit = 4, bool continueOnDisallowed = false, int disallowedFailureRating = 10, int disallowedStatusCode = 400)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The IServiceCollection to add services to. |
int | pathDeepLimit | |
bool | continueOnDisallowed | |
int | disallowedFailureRating | |
int | disallowedStatusCode |
Returns
Type | Description |
---|---|
IServiceCollection | The IServiceCollection so that additional calls can be chained. |