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)
Syntaxpublic Func<HttpContext, bool> MapWhen { get; set; }
Public Property MapWhen As Func(Of HttpContext, Boolean)
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