From 9848290f33dece03db820bdcb83941a81a5d653a Mon Sep 17 00:00:00 2001 From: nd1012 Date: Sat, 21 Sep 2024 03:28:46 +0000 Subject: [PATCH] Apply automatic changes --- .../wan24.ObjectValidation.CountryCodes.html | 2 +- ...jectValidation.CurrencyCodes.Currency.html | 24 ++-- .../wan24.ObjectValidation.CurrencyCodes.html | 2 +- .../wan24.ObjectValidation.HostAttribute.html | 105 +++++++++++++++++- docs/index.json | 2 +- docs/xrefmap.yml | 29 +++++ 6 files changed, 143 insertions(+), 21 deletions(-) diff --git a/docs/api/wan24.ObjectValidation.CountryCodes.html b/docs/api/wan24.ObjectValidation.CountryCodes.html index d791b00..c40cde8 100644 --- a/docs/api/wan24.ObjectValidation.CountryCodes.html +++ b/docs/api/wan24.ObjectValidation.CountryCodes.html @@ -146,7 +146,7 @@

Fields Edit this page - View Source + View Source

Known

Known countries (ISO 3166-1 alpha-2 code is the key, value the country name)

diff --git a/docs/api/wan24.ObjectValidation.CurrencyCodes.Currency.html b/docs/api/wan24.ObjectValidation.CurrencyCodes.Currency.html index 68c854f..f52e8b5 100644 --- a/docs/api/wan24.ObjectValidation.CurrencyCodes.Currency.html +++ b/docs/api/wan24.ObjectValidation.CurrencyCodes.Currency.html @@ -153,7 +153,7 @@

Constructors Edit this page - View Source + View Source

Currency(string, string, string, int)

@@ -210,7 +210,7 @@

Fields Edit this page - View Source + View Source

_Factor

Factor

@@ -242,7 +242,7 @@

Properties Edit this page - View Source + View Source

Code

@@ -273,7 +273,7 @@
Property Value
Edit this page - View Source + View Source

Factor

@@ -304,7 +304,7 @@
Property Value
Edit this page - View Source + View Source

MinorUnit

@@ -335,7 +335,7 @@
Property Value
Edit this page - View Source + View Source

Name

@@ -366,7 +366,7 @@
Property Value
Edit this page - View Source + View Source

NumericCode

@@ -397,7 +397,7 @@
Property Value
Edit this page - View Source + View Source

code

@@ -428,7 +428,7 @@
Property Value
Edit this page - View Source + View Source

minorUnit

@@ -459,7 +459,7 @@
Property Value
Edit this page - View Source + View Source

name

@@ -490,7 +490,7 @@
Property Value
Edit this page - View Source + View Source

numericCode

@@ -523,7 +523,7 @@

Methods Edit this page - View Source + View Source

Validate(decimal)

diff --git a/docs/api/wan24.ObjectValidation.CurrencyCodes.html b/docs/api/wan24.ObjectValidation.CurrencyCodes.html index 6c55de3..c016598 100644 --- a/docs/api/wan24.ObjectValidation.CurrencyCodes.html +++ b/docs/api/wan24.ObjectValidation.CurrencyCodes.html @@ -146,7 +146,7 @@

Fields Edit this page - View Source + View Source

Known

Known currencies (ISO 4217 code is the key, a currency information object the value)

diff --git a/docs/api/wan24.ObjectValidation.HostAttribute.html b/docs/api/wan24.ObjectValidation.HostAttribute.html index 702b526..91bf0ab 100644 --- a/docs/api/wan24.ObjectValidation.HostAttribute.html +++ b/docs/api/wan24.ObjectValidation.HostAttribute.html @@ -293,7 +293,7 @@

Constructors Edit this page - View Source + View Source

HostAttribute()

@@ -314,7 +314,7 @@

Properties Edit this page - View Source + View Source

AllowIPv4

@@ -345,7 +345,7 @@
Property Value
Edit this page - View Source + View Source

AllowIPv6

@@ -376,7 +376,7 @@
Property Value
Edit this page - View Source + View Source

CheckIfExists

@@ -407,7 +407,7 @@
Property Value
Edit this page - View Source + View Source

PingTimeout

@@ -433,14 +433,107 @@
Property Value
+ + | + Edit this page + + + View Source + + +

UseCache

+

Use a cache for CheckIfExists results?

+
+
+
Declaration
+
+
public bool UseCache { get; set; }
+
+
Property Value
+ + + + + + + + + + + + + +
TypeDescription
bool

Methods

+ + | + Edit this page + + + View Source + + +

CheckIfExistsCache(string?, IPAddress?, out IPStatus)

+

Check if a hostname/IP exists using a cache (may throw; for implementing a cache, this method needs to be overridden)

+
+
+
Declaration
+
+
protected virtual bool CheckIfExistsCache(string? hostName, IPAddress? ip, out IPStatus status)
+
+
Parameters
+ + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescription
stringhostName

Hostname

+
IPAddressip

IP address

+
IPStatusstatus

IP status

+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
bool

If exists

+
| Edit this page - View Source + View Source

IsValid(object?, ValidationContext)

diff --git a/docs/index.json b/docs/index.json index 6184a90..0fe1924 100644 --- a/docs/index.json +++ b/docs/index.json @@ -77,7 +77,7 @@ "api/wan24.ObjectValidation.HostAttribute.html": { "href": "api/wan24.ObjectValidation.HostAttribute.html", "title": "Class HostAttribute | ObjectValidation", - "keywords": "Class HostAttribute Host name or IP address validation attribute Inheritance object Attribute ValidationAttribute ValidationAttributeBase HostAttribute Inherited Members ValidationAttributeBase.ErrorMessageFormatter ValidationAttributeBase.GetErrorMessage(in ValidationContext, in string) ValidationAttribute.FormatErrorMessage(string) ValidationAttribute.GetValidationResult(object, ValidationContext) ValidationAttribute.IsValid(object) ValidationAttribute.Validate(object, ValidationContext) ValidationAttribute.Validate(object, string) ValidationAttribute.ErrorMessage ValidationAttribute.ErrorMessageResourceName ValidationAttribute.ErrorMessageResourceType ValidationAttribute.ErrorMessageString ValidationAttribute.RequiresValidationContext Attribute.Equals(object) Attribute.GetCustomAttribute(Assembly, Type) Attribute.GetCustomAttribute(Assembly, Type, bool) Attribute.GetCustomAttribute(MemberInfo, Type) Attribute.GetCustomAttribute(MemberInfo, Type, bool) Attribute.GetCustomAttribute(Module, Type) Attribute.GetCustomAttribute(Module, Type, bool) Attribute.GetCustomAttribute(ParameterInfo, Type) Attribute.GetCustomAttribute(ParameterInfo, Type, bool) Attribute.GetCustomAttributes(Assembly) Attribute.GetCustomAttributes(Assembly, bool) Attribute.GetCustomAttributes(Assembly, Type) Attribute.GetCustomAttributes(Assembly, Type, bool) Attribute.GetCustomAttributes(MemberInfo) Attribute.GetCustomAttributes(MemberInfo, bool) Attribute.GetCustomAttributes(MemberInfo, Type) Attribute.GetCustomAttributes(MemberInfo, Type, bool) Attribute.GetCustomAttributes(Module) Attribute.GetCustomAttributes(Module, bool) Attribute.GetCustomAttributes(Module, Type) Attribute.GetCustomAttributes(Module, Type, bool) Attribute.GetCustomAttributes(ParameterInfo) Attribute.GetCustomAttributes(ParameterInfo, bool) Attribute.GetCustomAttributes(ParameterInfo, Type) Attribute.GetCustomAttributes(ParameterInfo, Type, bool) Attribute.GetHashCode() Attribute.IsDefaultAttribute() Attribute.IsDefined(Assembly, Type) Attribute.IsDefined(Assembly, Type, bool) Attribute.IsDefined(MemberInfo, Type) Attribute.IsDefined(MemberInfo, Type, bool) Attribute.IsDefined(Module, Type) Attribute.IsDefined(Module, Type, bool) Attribute.IsDefined(ParameterInfo, Type) Attribute.IsDefined(ParameterInfo, Type, bool) Attribute.Match(object) Attribute.TypeId object.Equals(object, object) object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Namespace: wan24.ObjectValidation Assembly: ObjectValidation.dll Syntax public class HostAttribute : ValidationAttributeBase Remarks Constructor Constructors | Edit this page View Source HostAttribute() Host name or IP address validation attribute Declaration public HostAttribute() Remarks Constructor Properties | Edit this page View Source AllowIPv4 If IPv4 addresses are allowed Declaration public bool AllowIPv4 { get; set; } Property Value Type Description bool | Edit this page View Source AllowIPv6 If IPv6 addresses are allowed Declaration public bool AllowIPv6 { get; set; } Property Value Type Description bool | Edit this page View Source CheckIfExists Check if the hostname (DNS lookup) or IP address (ICMP) exists Declaration public bool CheckIfExists { get; set; } Property Value Type Description bool | Edit this page View Source PingTimeout Ping timeout in ms Declaration public int PingTimeout { get; set; } Property Value Type Description int Methods | Edit this page View Source IsValid(object?, ValidationContext) Validates the specified value with respect to the current validation attribute. Declaration protected override ValidationResult? IsValid(object? value, ValidationContext validationContext) Parameters Type Name Description object value The value to validate. ValidationContext validationContext The context information about the validation operation. Returns Type Description ValidationResult An instance of the ValidationResult class. Overrides ValidationAttribute.IsValid(object, ValidationContext) Exceptions Type Condition InvalidOperationException The current attribute is malformed. NotImplementedException IsValid(object, ValidationContext) has not been implemented by a derived class. Extension Methods ValidationExtensions.CreateValidationResult(ValidationAttribute, in string, in ValidationContext) ValidateObject.TryValidateNullableObject(object?, List?, string?, bool, IEnumerable?, IServiceProvider?) ValidateObject.TryValidateNullableObject(object?, out List, string?, bool, IEnumerable?, IServiceProvider?) ValidationExtensions.EnsureValidObject(object, Func, bool>, IEnumerable?, IServiceProvider?) ValidationExtensions.TryValidateObject(object, List?, string?, bool, IEnumerable?, IServiceProvider?) ValidationExtensions.TryValidateObject(object, out List, string?, bool, IEnumerable?, IServiceProvider?) ValidationExtensions.GetValidObject(T, Func, T>, IEnumerable?, IServiceProvider?) ValidationExtensions.ValidateObject(T, List, string?, IEnumerable?, IServiceProvider?) ValidationExtensions.ValidateObject(T, out List, string?, IEnumerable?, IServiceProvider?) ValueValidation.TryValidateAsItem(T?, string, out IEnumerable, IServiceProvider?) ValueValidation.TryValidateAsValue(T?, string, out IEnumerable, IServiceProvider?) ValueValidation.TryValidate(T?, IEnumerable, out IEnumerable, IServiceProvider?) ValueValidation.TryValidate(T?, out IEnumerable, params ValidationAttribute[]) ValueValidation.TryValidate(T?, out IEnumerable, params IItemValidationAttribute[]) ValueValidation.TryValidate(T?, IEnumerable, out IEnumerable, IServiceProvider?) ValueValidation.TryValidate(T?, IServiceProvider, out IEnumerable, params ValidationAttribute[]) ValueValidation.TryValidate(T?, IServiceProvider, out IEnumerable, params IItemValidationAttribute[]) ValueValidation.ValidateAsItem(T?, string, IServiceProvider?) ValueValidation.ValidateAsValue(T?, string, IServiceProvider?) ValueValidation.ValidateItem(T?, IEnumerable, IServiceProvider?) ValueValidation.ValidateItem(T?, IServiceProvider, params IItemValidationAttribute[]) ValueValidation.ValidateItem(T?, string, IServiceProvider?) ValueValidation.ValidateItem(T?, params IItemValidationAttribute[]) ValueValidation.ValidateValue(T?, IEnumerable, IServiceProvider?) ValueValidation.ValidateValue(T?, params ValidationAttribute[]) ValueValidation.ValidateValue(T?, IServiceProvider, params ValidationAttribute[]) ValueValidation.ValidateValue(T?, string, IServiceProvider?) ValueValidation.Validate(T?, IEnumerable, IServiceProvider?) ValueValidation.Validate(T?, IEnumerable, IServiceProvider?) ValueValidation.Validate(T?, params ValidationAttribute[]) ValueValidation.Validate(T?, IServiceProvider, params ValidationAttribute[]) ValueValidation.Validate(T?, IServiceProvider, params IItemValidationAttribute[]) ValueValidation.Validate(T?, params IItemValidationAttribute[])" + "keywords": "Class HostAttribute Host name or IP address validation attribute Inheritance object Attribute ValidationAttribute ValidationAttributeBase HostAttribute Inherited Members ValidationAttributeBase.ErrorMessageFormatter ValidationAttributeBase.GetErrorMessage(in ValidationContext, in string) ValidationAttribute.FormatErrorMessage(string) ValidationAttribute.GetValidationResult(object, ValidationContext) ValidationAttribute.IsValid(object) ValidationAttribute.Validate(object, ValidationContext) ValidationAttribute.Validate(object, string) ValidationAttribute.ErrorMessage ValidationAttribute.ErrorMessageResourceName ValidationAttribute.ErrorMessageResourceType ValidationAttribute.ErrorMessageString ValidationAttribute.RequiresValidationContext Attribute.Equals(object) Attribute.GetCustomAttribute(Assembly, Type) Attribute.GetCustomAttribute(Assembly, Type, bool) Attribute.GetCustomAttribute(MemberInfo, Type) Attribute.GetCustomAttribute(MemberInfo, Type, bool) Attribute.GetCustomAttribute(Module, Type) Attribute.GetCustomAttribute(Module, Type, bool) Attribute.GetCustomAttribute(ParameterInfo, Type) Attribute.GetCustomAttribute(ParameterInfo, Type, bool) Attribute.GetCustomAttributes(Assembly) Attribute.GetCustomAttributes(Assembly, bool) Attribute.GetCustomAttributes(Assembly, Type) Attribute.GetCustomAttributes(Assembly, Type, bool) Attribute.GetCustomAttributes(MemberInfo) Attribute.GetCustomAttributes(MemberInfo, bool) Attribute.GetCustomAttributes(MemberInfo, Type) Attribute.GetCustomAttributes(MemberInfo, Type, bool) Attribute.GetCustomAttributes(Module) Attribute.GetCustomAttributes(Module, bool) Attribute.GetCustomAttributes(Module, Type) Attribute.GetCustomAttributes(Module, Type, bool) Attribute.GetCustomAttributes(ParameterInfo) Attribute.GetCustomAttributes(ParameterInfo, bool) Attribute.GetCustomAttributes(ParameterInfo, Type) Attribute.GetCustomAttributes(ParameterInfo, Type, bool) Attribute.GetHashCode() Attribute.IsDefaultAttribute() Attribute.IsDefined(Assembly, Type) Attribute.IsDefined(Assembly, Type, bool) Attribute.IsDefined(MemberInfo, Type) Attribute.IsDefined(MemberInfo, Type, bool) Attribute.IsDefined(Module, Type) Attribute.IsDefined(Module, Type, bool) Attribute.IsDefined(ParameterInfo, Type) Attribute.IsDefined(ParameterInfo, Type, bool) Attribute.Match(object) Attribute.TypeId object.Equals(object, object) object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Namespace: wan24.ObjectValidation Assembly: ObjectValidation.dll Syntax public class HostAttribute : ValidationAttributeBase Remarks Constructor Constructors | Edit this page View Source HostAttribute() Host name or IP address validation attribute Declaration public HostAttribute() Remarks Constructor Properties | Edit this page View Source AllowIPv4 If IPv4 addresses are allowed Declaration public bool AllowIPv4 { get; set; } Property Value Type Description bool | Edit this page View Source AllowIPv6 If IPv6 addresses are allowed Declaration public bool AllowIPv6 { get; set; } Property Value Type Description bool | Edit this page View Source CheckIfExists Check if the hostname (DNS lookup) or IP address (ICMP) exists Declaration public bool CheckIfExists { get; set; } Property Value Type Description bool | Edit this page View Source PingTimeout Ping timeout in ms Declaration public int PingTimeout { get; set; } Property Value Type Description int | Edit this page View Source UseCache Use a cache for CheckIfExists results? Declaration public bool UseCache { get; set; } Property Value Type Description bool Methods | Edit this page View Source CheckIfExistsCache(string?, IPAddress?, out IPStatus) Check if a hostname/IP exists using a cache (may throw; for implementing a cache, this method needs to be overridden) Declaration protected virtual bool CheckIfExistsCache(string? hostName, IPAddress? ip, out IPStatus status) Parameters Type Name Description string hostName Hostname IPAddress ip IP address IPStatus status IP status Returns Type Description bool If exists | Edit this page View Source IsValid(object?, ValidationContext) Validates the specified value with respect to the current validation attribute. Declaration protected override ValidationResult? IsValid(object? value, ValidationContext validationContext) Parameters Type Name Description object value The value to validate. ValidationContext validationContext The context information about the validation operation. Returns Type Description ValidationResult An instance of the ValidationResult class. Overrides ValidationAttribute.IsValid(object, ValidationContext) Exceptions Type Condition InvalidOperationException The current attribute is malformed. NotImplementedException IsValid(object, ValidationContext) has not been implemented by a derived class. Extension Methods ValidationExtensions.CreateValidationResult(ValidationAttribute, in string, in ValidationContext) ValidateObject.TryValidateNullableObject(object?, List?, string?, bool, IEnumerable?, IServiceProvider?) ValidateObject.TryValidateNullableObject(object?, out List, string?, bool, IEnumerable?, IServiceProvider?) ValidationExtensions.EnsureValidObject(object, Func, bool>, IEnumerable?, IServiceProvider?) ValidationExtensions.TryValidateObject(object, List?, string?, bool, IEnumerable?, IServiceProvider?) ValidationExtensions.TryValidateObject(object, out List, string?, bool, IEnumerable?, IServiceProvider?) ValidationExtensions.GetValidObject(T, Func, T>, IEnumerable?, IServiceProvider?) ValidationExtensions.ValidateObject(T, List, string?, IEnumerable?, IServiceProvider?) ValidationExtensions.ValidateObject(T, out List, string?, IEnumerable?, IServiceProvider?) ValueValidation.TryValidateAsItem(T?, string, out IEnumerable, IServiceProvider?) ValueValidation.TryValidateAsValue(T?, string, out IEnumerable, IServiceProvider?) ValueValidation.TryValidate(T?, IEnumerable, out IEnumerable, IServiceProvider?) ValueValidation.TryValidate(T?, out IEnumerable, params ValidationAttribute[]) ValueValidation.TryValidate(T?, out IEnumerable, params IItemValidationAttribute[]) ValueValidation.TryValidate(T?, IEnumerable, out IEnumerable, IServiceProvider?) ValueValidation.TryValidate(T?, IServiceProvider, out IEnumerable, params ValidationAttribute[]) ValueValidation.TryValidate(T?, IServiceProvider, out IEnumerable, params IItemValidationAttribute[]) ValueValidation.ValidateAsItem(T?, string, IServiceProvider?) ValueValidation.ValidateAsValue(T?, string, IServiceProvider?) ValueValidation.ValidateItem(T?, IEnumerable, IServiceProvider?) ValueValidation.ValidateItem(T?, IServiceProvider, params IItemValidationAttribute[]) ValueValidation.ValidateItem(T?, string, IServiceProvider?) ValueValidation.ValidateItem(T?, params IItemValidationAttribute[]) ValueValidation.ValidateValue(T?, IEnumerable, IServiceProvider?) ValueValidation.ValidateValue(T?, params ValidationAttribute[]) ValueValidation.ValidateValue(T?, IServiceProvider, params ValidationAttribute[]) ValueValidation.ValidateValue(T?, string, IServiceProvider?) ValueValidation.Validate(T?, IEnumerable, IServiceProvider?) ValueValidation.Validate(T?, IEnumerable, IServiceProvider?) ValueValidation.Validate(T?, params ValidationAttribute[]) ValueValidation.Validate(T?, IServiceProvider, params ValidationAttribute[]) ValueValidation.Validate(T?, IServiceProvider, params IItemValidationAttribute[]) ValueValidation.Validate(T?, params IItemValidationAttribute[])" }, "api/wan24.ObjectValidation.ICountable.html": { "href": "api/wan24.ObjectValidation.ICountable.html", diff --git a/docs/xrefmap.yml b/docs/xrefmap.yml index 6308ff0..f244b2e 100644 --- a/docs/xrefmap.yml +++ b/docs/xrefmap.yml @@ -885,6 +885,22 @@ references: isSpec: "True" fullName: wan24.ObjectValidation.HostAttribute.CheckIfExists nameWithType: HostAttribute.CheckIfExists +- uid: wan24.ObjectValidation.HostAttribute.CheckIfExistsCache(System.String,System.Net.IPAddress,System.Net.NetworkInformation.IPStatus@) + name: CheckIfExistsCache(string?, IPAddress?, out IPStatus) + href: api/wan24.ObjectValidation.HostAttribute.html#wan24_ObjectValidation_HostAttribute_CheckIfExistsCache_System_String_System_Net_IPAddress_System_Net_NetworkInformation_IPStatus__ + commentId: M:wan24.ObjectValidation.HostAttribute.CheckIfExistsCache(System.String,System.Net.IPAddress,System.Net.NetworkInformation.IPStatus@) + name.vb: CheckIfExistsCache(String, IPAddress, IPStatus) + fullName: wan24.ObjectValidation.HostAttribute.CheckIfExistsCache(string?, System.Net.IPAddress?, out System.Net.NetworkInformation.IPStatus) + fullName.vb: wan24.ObjectValidation.HostAttribute.CheckIfExistsCache(String, System.Net.IPAddress, System.Net.NetworkInformation.IPStatus) + nameWithType: HostAttribute.CheckIfExistsCache(string?, IPAddress?, out IPStatus) + nameWithType.vb: HostAttribute.CheckIfExistsCache(String, IPAddress, IPStatus) +- uid: wan24.ObjectValidation.HostAttribute.CheckIfExistsCache* + name: CheckIfExistsCache + href: api/wan24.ObjectValidation.HostAttribute.html#wan24_ObjectValidation_HostAttribute_CheckIfExistsCache_ + commentId: Overload:wan24.ObjectValidation.HostAttribute.CheckIfExistsCache + isSpec: "True" + fullName: wan24.ObjectValidation.HostAttribute.CheckIfExistsCache + nameWithType: HostAttribute.CheckIfExistsCache - uid: wan24.ObjectValidation.HostAttribute.IsValid(System.Object,System.ComponentModel.DataAnnotations.ValidationContext) name: IsValid(object?, ValidationContext) href: api/wan24.ObjectValidation.HostAttribute.html#wan24_ObjectValidation_HostAttribute_IsValid_System_Object_System_ComponentModel_DataAnnotations_ValidationContext_ @@ -914,6 +930,19 @@ references: isSpec: "True" fullName: wan24.ObjectValidation.HostAttribute.PingTimeout nameWithType: HostAttribute.PingTimeout +- uid: wan24.ObjectValidation.HostAttribute.UseCache + name: UseCache + href: api/wan24.ObjectValidation.HostAttribute.html#wan24_ObjectValidation_HostAttribute_UseCache + commentId: P:wan24.ObjectValidation.HostAttribute.UseCache + fullName: wan24.ObjectValidation.HostAttribute.UseCache + nameWithType: HostAttribute.UseCache +- uid: wan24.ObjectValidation.HostAttribute.UseCache* + name: UseCache + href: api/wan24.ObjectValidation.HostAttribute.html#wan24_ObjectValidation_HostAttribute_UseCache_ + commentId: Overload:wan24.ObjectValidation.HostAttribute.UseCache + isSpec: "True" + fullName: wan24.ObjectValidation.HostAttribute.UseCache + nameWithType: HostAttribute.UseCache - uid: wan24.ObjectValidation.ICountable name: ICountable href: api/wan24.ObjectValidation.ICountable.html