Click or drag to resize

RadPdfCoreMiddlewareSettingsMapWhen Property

Gets or sets a value pointing to the function which should be use to determine when the RAD PDF handler should be mapped.

Namespace:  RadPdf
Assembly:  RadPdfStandard (in RadPdfStandard.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax
public Func<HttpContext, bool> MapWhen { get; set; }

Property Value

Type: FuncHttpContext, Boolean
Remarks

If null, the RAD PDF handler will be invoked on all requests / without a MapWhen predicate.

By default, the middleware uses a function similar to:

context => context.Request.Path.ToString().EndsWith("/" + PdfIntegrationProvider.Current.HttpSettings.HttpHandlerPath, StringComparison.OrdinalIgnoreCase);

See Also