11 references to RequestValidator
System.Web (11)
HttpRequest.cs (1)
2696
if (!
RequestValidator
.Current.IsValidRequestString(contextToProvide, value, requestCollection, collectionKey, out validationFailureIndex)) {
HttpRuntime.cs (1)
663
RequestValidator
.InitializeOnFirstRequest();
Util\RequestValidator.cs (9)
22
private static
RequestValidator
_customValidator;
24
private static readonly Lazy<
RequestValidator
> _customValidatorResolver =
25
new Lazy<
RequestValidator
>(GetCustomValidatorFromConfig);
27
public static
RequestValidator
Current {
42
private static
RequestValidator
GetCustomValidatorFromConfig() {
50
ConfigUtil.CheckBaseType(typeof(
RequestValidator
) /* expectedBaseType */, validatorType, "requestValidationType", runtimeSection);
53
RequestValidator
validator = (
RequestValidator
)HttpRuntime.CreatePublicInstanceByWebObjectActivator(validatorType);
59
RequestValidator
validator = _customValidatorResolver.Value;