diff --git a/lib/ServiceStack.Common.dll b/lib/ServiceStack.Common.dll
index 741edf10..18fc4af9 100755
Binary files a/lib/ServiceStack.Common.dll and b/lib/ServiceStack.Common.dll differ
diff --git a/lib/ServiceStack.Interfaces.dll b/lib/ServiceStack.Interfaces.dll
index 9ba826ff..c3e8d64a 100755
Binary files a/lib/ServiceStack.Interfaces.dll and b/lib/ServiceStack.Interfaces.dll differ
diff --git a/lib/ServiceStack.Text.XML b/lib/ServiceStack.Text.XML
index 7b26be20..3bae85c8 100644
--- a/lib/ServiceStack.Text.XML
+++ b/lib/ServiceStack.Text.XML
@@ -181,6 +181,11 @@
Gets or sets a value indicating if unicode symbols should be serialized as "\uXXXX".
+
+
+ Gets or sets a value indicating if HTML entity chars [> < & = '] should be escaped as "\uXXXX".
+
+
Gets or sets a value indicating if the framework should call an error handler when
@@ -293,7 +298,7 @@
Uses the standard .net ToString method of the TimeSpan class
-
+
Get JSON string value converted to T
@@ -355,11 +360,12 @@
Micro-optimization keep pre-built char arrays saving a .ToCharArray() + function call (see .net implementation of .Write(string))
-
+
Searches the string for one or more non-printable characters.
The string to search.
+
True if there are any characters that require escaping. False if the value can be written verbatim.
Micro optimizations: since quote and backslash are the only printable characters requiring escaping, removed previous optimization
diff --git a/lib/ServiceStack.Text.dll b/lib/ServiceStack.Text.dll
index 5f5bd026..0bebea73 100755
Binary files a/lib/ServiceStack.Text.dll and b/lib/ServiceStack.Text.dll differ
diff --git a/lib/tests/ServiceStack.Client.dll b/lib/tests/ServiceStack.Client.dll
index ba8af2d5..b24d7b96 100644
Binary files a/lib/tests/ServiceStack.Client.dll and b/lib/tests/ServiceStack.Client.dll differ
diff --git a/lib/tests/ServiceStack.Client.xml b/lib/tests/ServiceStack.Client.xml
index 77b79afe..4593fcbc 100644
--- a/lib/tests/ServiceStack.Client.xml
+++ b/lib/tests/ServiceStack.Client.xml
@@ -112,13 +112,13 @@
Need to provide async request options
http://msdn.microsoft.com/en-us/library/86wf6409(VS.71).aspx
-
+
The request filter is called before any request.
This request filter is executed globally.
-
+
The response action is called once the server response is available.
It will allow you to access raw response information.
@@ -137,17 +137,17 @@
Base URI of the service
-
+
Whether to Accept Gzip,Deflate Content-Encoding and to auto decompress responses
-
+
The user name for basic authentication
-
+
The password for basic authentication
@@ -157,7 +157,7 @@
Sets the username and the password for basic authentication.
-
+
The Authorization Bearer Token to send with this request
@@ -174,44 +174,55 @@
This property is only used for IIS level authentication.
-
+
Determines if the basic auth header should be sent with every request.
By default, the basic auth header is only sent when "401 Unauthorized" is returned.
-
+
Specifies if cookies should be stored
-
+
Called before request resend, when the initial request required authentication
-
+
+
+ If a request fails with a 401 Unauthorized and a BearerToken is present the client
+ will automatically fetch a new AccessToken using this RefreshToken and retry the request
+
+
+
+
+ Send the Request to get the AccessToken with the RefreshToken at a non-default location
+
+
+
The request filter is called before any request.
This request filter only works with the instance where it was set (not global).
-
+
The ResultsFilter is called before the Request is sent allowing you to return a cached response.
-
+
The ResultsFilterResponse is called before returning the response allowing responses to be cached.
-
+
Called with requestUri, ResponseType when server returns 304 NotModified
-
+
The response action is called once the server response is available.
It will allow you to access raw response information.
diff --git a/lib/tests/ServiceStack.Common.Tests.dll b/lib/tests/ServiceStack.Common.Tests.dll
index a989806f..732660db 100644
Binary files a/lib/tests/ServiceStack.Common.Tests.dll and b/lib/tests/ServiceStack.Common.Tests.dll differ
diff --git a/lib/tests/ServiceStack.Common.Tests.pdb b/lib/tests/ServiceStack.Common.Tests.pdb
index 5b1424c1..b570f157 100644
Binary files a/lib/tests/ServiceStack.Common.Tests.pdb and b/lib/tests/ServiceStack.Common.Tests.pdb differ
diff --git a/lib/tests/ServiceStack.Common.dll b/lib/tests/ServiceStack.Common.dll
index 741edf10..18fc4af9 100644
Binary files a/lib/tests/ServiceStack.Common.dll and b/lib/tests/ServiceStack.Common.dll differ
diff --git a/lib/tests/ServiceStack.Interfaces.dll b/lib/tests/ServiceStack.Interfaces.dll
index a9a2dfe9..bfc5a127 100644
Binary files a/lib/tests/ServiceStack.Interfaces.dll and b/lib/tests/ServiceStack.Interfaces.dll differ
diff --git a/lib/tests/ServiceStack.OrmLite.dll b/lib/tests/ServiceStack.OrmLite.dll
index 1efa0303..20d84239 100644
Binary files a/lib/tests/ServiceStack.OrmLite.dll and b/lib/tests/ServiceStack.OrmLite.dll differ
diff --git a/lib/tests/ServiceStack.Redis.dll b/lib/tests/ServiceStack.Redis.dll
index 4dcdd1d9..12d5f80a 100644
Binary files a/lib/tests/ServiceStack.Redis.dll and b/lib/tests/ServiceStack.Redis.dll differ
diff --git a/lib/tests/ServiceStack.Redis.xml b/lib/tests/ServiceStack.Redis.xml
index eff37d6d..3ecd80af 100644
--- a/lib/tests/ServiceStack.Redis.xml
+++ b/lib/tests/ServiceStack.Redis.xml
@@ -59,9 +59,24 @@
Resolver strategy for resolving hosts and creating clients
+
+
+ Configuration class for the RedisManagerPool
+
+
+
+
+ Default pool size used by every new instance of . (default: 40)
+
+
+
+
+ Maximum ammount of s created by the .
+
+
- Provides thread-safe pooling of redis client connections.
+ Provides thread-safe pooling of redis client connections. All connections are treaded as read and write hosts.
@@ -1474,7 +1489,11 @@
This class contains all the common operations for the RedisClient.
The client contains a 1:1 mapping of c# methods to redis operations of the same name.
- Not threadsafe use a pooled manager
+ Not threadsafe, use a pooled manager!
+ All redis calls on a single instances write to the same Socket.
+ If used in multiple threads (or async Tasks) at the same time you will find
+ that commands are not executed properly by redis and Servicestack wont be able to (json) serialize
+ the data that comes back.
diff --git a/lib/tests/ServiceStack.Server.dll b/lib/tests/ServiceStack.Server.dll
index 4dddcc7f..d0fee997 100644
Binary files a/lib/tests/ServiceStack.Server.dll and b/lib/tests/ServiceStack.Server.dll differ
diff --git a/lib/tests/ServiceStack.Text.dll b/lib/tests/ServiceStack.Text.dll
index 5f5bd026..c976bbe5 100644
Binary files a/lib/tests/ServiceStack.Text.dll and b/lib/tests/ServiceStack.Text.dll differ
diff --git a/lib/tests/ServiceStack.Text.xml b/lib/tests/ServiceStack.Text.xml
index 7b26be20..3bae85c8 100644
--- a/lib/tests/ServiceStack.Text.xml
+++ b/lib/tests/ServiceStack.Text.xml
@@ -181,6 +181,11 @@
Gets or sets a value indicating if unicode symbols should be serialized as "\uXXXX".
+
+
+ Gets or sets a value indicating if HTML entity chars [> < & = '] should be escaped as "\uXXXX".
+
+
Gets or sets a value indicating if the framework should call an error handler when
@@ -293,7 +298,7 @@
Uses the standard .net ToString method of the TimeSpan class
-
+
Get JSON string value converted to T
@@ -355,11 +360,12 @@
Micro-optimization keep pre-built char arrays saving a .ToCharArray() + function call (see .net implementation of .Write(string))
-
+
Searches the string for one or more non-printable characters.
The string to search.
+
True if there are any characters that require escaping. False if the value can be written verbatim.
Micro optimizations: since quote and backslash are the only printable characters requiring escaping, removed previous optimization
diff --git a/lib/tests/ServiceStack.XML b/lib/tests/ServiceStack.XML
index eea06352..eaa8b7d1 100644
--- a/lib/tests/ServiceStack.XML
+++ b/lib/tests/ServiceStack.XML
@@ -195,6 +195,21 @@
How long should JWT Tokens be valid for. (default 14 days)
+
+
+ How long should JWT Refresh Tokens be valid for. (default 365 days)
+
+
+
+
+ Allow custom logic to invalidate JWT Tokens
+
+
+
+
+ Allow custom logic to invalidate Refresh Tokens
+
+
Convenient overload to initialize ExpireTokensIn with an Integer
@@ -261,12 +276,6 @@
The Callback URL for your app should match the CallbackUrl provided.
-
-
- Calling to Github API without defined Useragent throws
- exception "The server committed a protocol violation. Section=ResponseStatusLine"
-
-
Creates the required missing tables or DB schema
@@ -396,17 +405,17 @@
-
+
Update an existing registraiton
-
+
Create new Registration
-
+
Logic to update UserAuth from Registration info, not enabled on PUT because of security.
@@ -744,6 +753,105 @@
Skip compression for this Cache Result
+
+
+ Decorates the ICacheClient (and its sibblings) prefixing every key with the given prefix
+
+ Usefull for multi-tenant environments
+
+
+
+
+ Decorates the ICacheClient (and its sibblings) prefixing every key with the given prefix
+
+ Usefull for multi-tenant environments
+
+
+
+
+ Create new instance of CacheEntry.
+
+
+
+ UTC time at which CacheEntry expires.
+
+
+
+ Stores The value with key only if such key doesn't exist at the server yet.
+
+
+
+
+ Adds or replaces the value with key.
+
+
+
+
+ Adds or replaces the value with key.
+
+
+
+
+ Replace the value with specified key if it exists.
+
+
+
+
+ Add the value with key to the cache, set to never expire.
+
+
+
+
+ Add or replace the value with key to the cache, set to never expire.
+
+
+
+
+ Replace the value with key in the cache, set to never expire.
+
+
+
+
+ Add the value with key to the cache, set to expire at specified DateTime.
+
+ This method examines the DateTimeKind of expiresAt to determine if conversion to
+ universal time is needed. The version of Add that takes a TimeSpan expiration is faster
+ than using this method with a DateTime of Kind other than Utc, and is not affected by
+ ambiguous local time during daylight savings/standard time transition.
+
+
+
+ Add or replace the value with key to the cache, set to expire at specified DateTime.
+
+ This method examines the DateTimeKind of expiresAt to determine if conversion to
+ universal time is needed. The version of Set that takes a TimeSpan expiration is faster
+ than using this method with a DateTime of Kind other than Utc, and is not affected by
+ ambiguous local time during daylight savings/standard time transition.
+
+
+
+ Replace the value with key in the cache, set to expire at specified DateTime.
+
+ This method examines the DateTimeKind of expiresAt to determine if conversion to
+ universal time is needed. The version of Replace that takes a TimeSpan expiration is faster
+ than using this method with a DateTime of Kind other than Utc, and is not affected by
+ ambiguous local time during daylight savings/standard time transition.
+
+
+
+ Add the value with key to the cache, set to expire after specified TimeSpan.
+
+
+
+
+ Add or replace the value with key to the cache, set to expire after specified TimeSpan.
+
+
+
+
+ Replace the value with key in the cache, set to expire after specified TimeSpan.
+
+
Wrappers for improving consistency with .NET Core Conventions
@@ -767,11 +875,81 @@
If disposable is still alive alose .Release() is called to release the object.
+
+
+ Rule definition for collection properties
+
+
+
+
+
+ Initializes new instance of the CollectionPropertyRule class
+
+
+
+
+
+
+
+
Creates a new property rule from a lambda expression.
+
+
+ Invokes the validator asynchronously
+
+
+
+
+
+
+
+
+
+ Invokes the validator
+
+
+
+
+
+
+
+
+ Custom logic for performing comparisons
+
+
+
+
+ Tries to compare the two objects.
+
+
+ The resulting comparison value.
+
+ True if all went well, otherwise False.
+
+
+
+ Tries to do a proper comparison but may fail.
+ First it tries the default comparison, if this fails, it will see
+ if the values are fractions. If they are, then it does a double
+ comparison, otherwise it does a long comparison.
+
+
+
+
+ Tries to compare the two objects, but will throw an exception if it fails.
+
+ True on success, otherwise False.
+
+
+
+ Tries to compare the two objects, but will throw an exception if it fails.
+
+ True on success, otherwise False.
+
Default validator selector that will execute all rules that do not belong to a RuleSet.
@@ -807,6 +985,16 @@
Creates a new DelegateValidator using the specified function to perform validation.
+
+
+ Creates a new DelegateValidator using the specified async function to perform validation.
+
+
+
+
+ Creates a new DelegateValidator using the specified async function to perform validation.
+
+
Performs validation using a validation context and returns a collection of Validation Failures.
@@ -814,6 +1002,14 @@
Validation Context
A collection of validation failures
+
+
+ Performs validation asynchronously using a validation context and returns a collection of Validation Failures.
+
+ Validation Context
+
+ A collection of validation failures
+
The validators that are grouped under this rule.
@@ -826,11 +1022,40 @@
Validation Context
A collection of validation failures
+
+
+ When overloaded performs validation asynchronously using a validation context and returns a collection of Validation Failures.
+
+ Validation Context
+
+ A collection of validation failures
+
+
+
+ Applies a condition to the validator.
+
+
+
+
+
+
+ Applies a condition asynchronously to the validator
+
+
+
+
Useful extensions
+
+
+ Checks if the expression is a parameter expression
+
+
+
+
Gets a MemberInfo from a member expression.
@@ -855,11 +1080,6 @@
The value being compared
-
-
- Based on a child validator and a propery rule, infers whether the validator should be wrapped in a ChildValidatorAdaptor or a CollectionValidatorAdaptor
-
-
Represents an object that is configurable.
@@ -877,7 +1097,6 @@
Instancace cache.
- TODO: This isn't actually completely thread safe. It would be much better to use ConcurrentDictionary, but this isn't available in Silverlight/WP7.
@@ -895,6 +1114,21 @@
The custom factory
The instantiated object
+
+
+ Member accessor cache.
+
+
+
+
+
+ Gets an accessor func based on an expression
+
+
+ The member represented by the expression
+
+ Accessor func
+
Determines whether or not a rule should execute.
@@ -933,6 +1167,14 @@
Creates a MemberNameValidatorSelector from a collection of expressions.
+
+
+ Gets member names from expressions
+
+
+
+
+
Assists in the construction of validation messages.
@@ -943,6 +1185,11 @@
Default Property Name placeholder.
+
+
+ Default Property Value placeholder.
+
+
Adds a value for a validation message placeholder.
@@ -958,6 +1205,13 @@
The name of the property
+
+
+ Appends a property value to the message.
+
+ The value of the property
+
+
Adds additional arguments to the message for use with standard string placeholders.
@@ -967,11 +1221,21 @@
- Constructs the final message from the specified template.
+ Constructs the final message from the specified template.
Message template
The message with placeholders replaced with their appropriate values
+
+
+ Additional arguments to use
+
+
+
+
+ Additional placeholder values
+
+
Represents a chain of properties
@@ -987,6 +1251,19 @@
Creates a new PropertyChain based on another.
+
+
+ Creates a new PropertyChain
+
+
+
+
+
+ Creates a PropertyChain from a lambda expresion
+
+
+
+
Adds a MemberInfo instance to the chain
@@ -1001,7 +1278,7 @@
- Adds an indexer to the property chain. For example, if the following chain has been constructed:
+ Adds an indexer to the property chain. For example, if the following chain has been constructed:
Parent.Child
then calling AddIndexer(0) would convert this to:
Parent.Child[0]
@@ -1027,6 +1304,11 @@
Builds a property path.
+
+
+ Number of member names in the chain
+
+
Defines a rule associated with a property.
@@ -1113,15 +1395,35 @@
Replaces a validator in this rule. Used to wrap validators.
+
+
+ Remove a validator in this rule.
+
+
+
+
+ Clear all validators from this rule.
+
+
Returns the property name for the property being validated.
Returns null if it is not a property being validated (eg a method call)
+
+
+ Allows custom creation of an error message
+
+
+
+
+ Dependent rules
+
+
- Display name for the property.
+ Display name for the property.
@@ -1131,11 +1433,66 @@
Validation Context
A collection of validation failures
+
+
+ Performs asynchronous validation using a validation context and returns a collection of Validation Failures.
+
+ Validation Context
+
+ A collection of validation failures
+
+
+
+ Invokes the validator asynchronously
+
+
+
+
+
+
+
Invokes a property validator using the specified validation context.
+
+
+ Applies a condition to the rule
+
+
+
+
+
+
+ Applies the condition to the rule asynchronously
+
+
+
+
+
+
+ Include rule
+
+
+
+
+ Creates a new IncludeRule
+
+
+
+
+
+
+
+
+ Creates a new include rule from an existing validator
+
+
+
+
+
+
Builds a validation rule and constructs a validator.
@@ -1166,11 +1523,22 @@
The validator to set
+
+
+ Sets the validator associated with the rule. Use with complex properties where an IValidator instance is already declared for the property type.
+
+ The validator provider to set
+
Selects validators that belong to the specified rulesets.
+
+
+ Rule sets
+
+
Creates a new instance of the RulesetValidatorSelector.
@@ -1185,15 +1553,481 @@
Contextual information
Whether or not the validator can execute.
-
+
- Base class for entity validator classes.
+ Checks if the rule is an IncludeRule
- The type of the object being validated
+
+
-
+
- Sets the cascade mode for all rules within this validator.
+ Gets validators for method parameters.
+
+
+
+
+ Gets a validator for .
+
+ The instance to get a validator for.
+ Created instance; if a validator cannot be
+ created.
+
+
+
+ Extensions for property rules
+
+
+
+
+ Replace the first validator of this type and remove all the others.
+
+
+
+
+ Remove all validators of the specifed type.
+
+
+
+
+ Remove all validators for the given property.
+
+
+
+
+ Lazily loads the string
+
+
+
+
+ Creates a new LazyStringSource
+
+
+
+
+
+ Creates a LazyStringSource
+
+
+
+
+ Gets the value
+
+
+
+
+
+ Resource type
+
+
+
+
+ Resource name
+
+
+
+
+ A strongly-typed resource class, for looking up localized strings, etc.
+
+
+
+
+ Returns the cached ResourceManager instance used by this class.
+
+
+
+
+ Overrides the current thread's CurrentUICulture property for all
+ resource lookups using this strongly typed resource class.
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' is not a valid credit card number..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' is not a valid email address..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' should be empty..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' has a range of values which does not include '{PropertyValue}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' should be equal to '{ComparisonValue}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be {MaxLength} characters in length. You entered {TotalLength} characters..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be between {From} and {To} (exclusive). You entered {Value}..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be greater than '{ComparisonValue}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be greater than or equal to '{ComparisonValue}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be between {From} and {To}. You entered {Value}..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be between {MinLength} and {MaxLength} characters. You entered {TotalLength} characters..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be less than '{ComparisonValue}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be less than or equal to '{ComparisonValue}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' should not be empty..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' should not be equal to '{ComparisonValue}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must not be empty..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' must be empty..
+
+
+
+
+ Looks up a localized string similar to The specified condition was not met for '{PropertyName}'..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' is not in the correct format..
+
+
+
+
+ Looks up a localized string similar to '{PropertyName}' may not be more than {expectedPrecision} digits in total, with allowance for {expectedScale} decimals. {digits} digits and {actualScale} decimals were found..
+
+
+
+
+ Defines an accessor for localization resources
+
+
+
+
+ Function that can be used to retrieve the resource
+
+
+
+
+ Resource type
+
+
+
+
+ Resource name
+
+
+
+
+ Builds a delegate for retrieving a localised resource from a resource type and property name.
+
+
+
+
+ Gets a function that can be used to retrieve a message from a resource type and resource name.
+
+
+
+
+ Builds a delegate for retrieving a localised resource from a resource type and property name.
+
+
+
+
+ Builds a function used to retrieve the resource.
+
+
+
+
+ Gets the PropertyInfo for a resource.
+ ResourceType and ResourceName are ref parameters to allow derived types
+ to replace the type/name of the resource before the delegate is constructed.
+
+
+
+
+ Implemenetation of IResourceAccessorBuilder that can fall back to the default resource provider.
+
+
+
+
+ Gets the PropertyInfo for a resource.
+ ResourceType and ResourceName are ref parameters to allow derived types
+ to replace the type/name of the resource before the delegate is constructed.
+
+
+
+
+ Provides error message templates
+
+
+
+
+ Construct the error message template
+
+ Error message template
+
+
+
+ The name of the resource if localized.
+
+
+
+
+ The type of the resource provider if localized.
+
+
+
+
+ Represents a localized string.
+
+
+
+
+ Creates a new instance of the LocalizedErrorMessageSource class using the specified resource name and resource type.
+
+ The resource type
+ The resource name
+ Strategy used to construct the resource accessor
+
+
+
+ Creates an IErrorMessageSource from an expression: () => MyResources.SomeResourceName
+
+ The expression
+ Strategy used to construct the resource accessor
+ Error message source
+
+
+
+ Construct the error message template
+
+ Error message template
+
+
+
+ The name of the resource if localized.
+
+
+
+
+ The type of the resource provider if localized.
+
+
+
+
+ Represents a static string.
+
+
+
+
+ Creates a new StringErrorMessageSource using the specified error message as the error template.
+
+ The error message template.
+
+
+
+ Construct the error message template
+
+ Error message template
+
+
+
+ The name of the resource if localized.
+
+
+
+
+ The type of the resource provider if localized.
+
+
+
+
+ Asynchronous custom validator
+
+
+
+
+ Creates a new ASyncPredicateValidator
+
+
+
+
+
+ Runs the validation check
+
+
+
+
+
+
+
+ Allows a decimal to be validated for scale and precision.
+ Scale would be the number of digits to the right of the decimal point.
+ Precision would be the number of digits.
+
+ It can be configured to use the effective scale and precision
+ (i.e. ignore trailing zeros) if required.
+
+ 123.4500 has an scale of 4 and a precision of 7, but an effective scale
+ and precision of 2 and 5 respectively.
+
+
+
+
+ Base class for all comparison validators
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Performs the comparison
+
+
+
+
+
+
+ Override to perform the comparison
+
+
+
+
+
+
+
+ Metadata- the comparison type
+
+
+
+
+ Metadata- the member being compared
+
+
+
+
+ Metadata- the value being compared
+
+
+
+
+ Defines a comparison validator
+
+
+
+
+ Metadata- the comparison type
+
+
+
+
+ Metadata- the member being compared
+
+
+
+
+ Metadata- the value being compared
+
+
+
+
+ Ensures that the property value is a valid credit card number.
+
+
+
+
+ A custom property validator.
+ This interface should not be implemented directly in your code as it is subject to change.
+ Please inherit from PropertyValidator instead.
+
+
+
+
+ Custom message arguments.
+ Arg 1: Instance being validated
+ Arg 2: Property value
+
+
+
+
+ Prepares the of for an upcoming .
+
+ The validator context
+
+
+
+ Creates an error validation result for this validator.
+
+ The validator context
+ Returns an error validation result.
+
+
+
+ Base class for entity validator classes.
+
+ The type of the object being validated
+
+
+
+ Sets the cascade mode for all rules within this validator.
@@ -1203,6 +2037,14 @@
The object to validate
A ValidationResult object containing any validation failures
+
+
+ Validates the specified instance asynchronously
+
+ The object to validate
+ Cancellation token
+ A ValidationResult object containing any validation failures
+
Validates the specified instance.
@@ -1210,6 +2052,14 @@
Validation Context
A ValidationResult object containing any validation failures.
+
+
+ Validates the specified instance asynchronously.
+
+ Validation Context
+ Cancellation token
+ A ValidationResult object containing any validation failures.
+
Adds a rule to the current validator.
@@ -1232,6 +2082,14 @@
The expression representing the property to validate
an IRuleBuilder instance on which validators can be defined
+
+
+ Invokes a rule for each item in the collection
+
+ Type of property
+ Expression representing the collection to validate
+ An IRuleBuilder instance on which validators can be defined
+
Defines a custom validation rule using a lambda expression.
@@ -1248,6 +2106,22 @@
A lambda that executes custom validation rules
+
+
+ Defines a custom asynchronous validation rule using a lambda expression.
+ If the validation rule fails, it should asynchronously return a instance of a ValidationFailure
+ If the validation rule succeeds, it should return null.
+
+ A lambda that executes custom validation rules.
+
+
+
+ Defines a custom asynchronous validation rule using a lambda expression.
+ If the validation rule fails, it should asynchronously return an instance of ValidationFailure
+ If the validation rule succeeds, it should return null.
+
+ A lambda that executes custom validation rules
+
Defines a RuleSet that can be used to group together several validators.
@@ -1272,11 +2146,31 @@
- Defiles an inverse condition that applies to several rules
+ Defines an inverse condition that applies to several rules
The condition that should be applied to multiple rules
Action that encapsulates the rules
+
+
+ Defines an asynchronous condition that applies to several rules
+
+ The asynchronous condition that should apply to multiple rules
+ Action that encapsulates the rules.
+
+
+
+
+ Defines an inverse asynchronous condition that applies to several rules
+
+ The asynchronous condition that should be applied to multiple rules
+ Action that encapsulates the rules
+
+
+
+ Includes the rules from the specified validator
+
+
Returns an enumerator that iterates through the collection of validation rules.
@@ -1286,6 +2180,12 @@
1
+
+
+ Container class for dependent rule definitions
+
+
+
Class that can be used to find all the validators from a collection of types.
@@ -1337,13 +2237,27 @@
- Concrete type that implements the InterfaceType, eg FooValidator.
+ Concrete type that implements the InterfaceType, eg FooValidator.
+
+
+
+
+ Implementation of and that looks for
+ the instance on the specified or
+ in order to provide the validator instance.
+
+
+
+
+ Creates an instance of .
-
+
- Implementation of IValidatorFactory that looks for ValidatorAttribute instances on the specified type in order to provide the validator instance.
+ Creates an instance of with the supplied instance factory delegate
+ used for creation of instances.
+ The instance factory delegate.
@@ -1354,6 +2268,16 @@
Gets a validator for the appropriate type.
+ Created instance; if a validator cannot be
+ created.
+
+
+
+ Gets a validator for .
+
+ The instance to get a validator for.
+ Created instance; if a validator cannot be
+ created.
@@ -1362,20 +2286,51 @@
- The type of the validator used to validate the current type.
+ The type of the validator used to validate the current type or parameter.
- Creates an instance of the ValidatorAttribute allowing a validator type to be specified.
+ Creates an instance of allowing a validator type to be specified.
+
+
+
+
+ Extension methods for collection validation rules
Associates an instance of IValidator with the current property rule and is used to validate each item within the collection.
+ Rule builder
The validator to use
+
+
+ Uses a provider to instantiate a validator instance to be associated with a collection
+
+
+
+
+
+
+
+
+
+
+ Collection rule builder syntax
+
+
+
+
+
+
+ Defines a condition to be used to determine if validation should run
+
+
+
+
Extension methods that provide the default set of validators.
@@ -1383,7 +2338,7 @@
- Defines a 'not null' validator on the current rule builder.
+ Defines a 'not null' validator on the current rule builder.
Validation will fail if the property is null.
Type of object being validated
@@ -1391,6 +2346,16 @@
The rule builder on which the validator should be defined
+
+
+ Defines a 'null' validator on the current rule builder.
+ Validation will fail if the property is not null.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+
+
Defines a 'not empty' validator on the current rule builder.
@@ -1401,6 +2366,16 @@
The rule builder on which the validator should be defined
+
+
+ Defines a 'empty' validator on the current rule builder.
+ Validation will fail if the property is not null, an empty or the default value for the type (for example, 0 for integers)
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+
+
Defines a length validator on the current rule builder, but only for string properties.
@@ -1408,6 +2383,19 @@
Type of object being validated
The rule builder on which the validator should be defined
+
+
+
+
+
+
+ Defines a length validator on the current rule builder, but only for string properties.
+ Validation will fail if the length of the string is outside of the specifed range. The range is inclusive.
+
+ Type of object being validated
+ The rule builder on which the validator should be defined
+
+
@@ -1417,6 +2405,17 @@
Type of object being validated
The rule builder on which the validator should be defined
+
+
+
+
+
+ Defines a length validator on the current rule builder, but only for string properties.
+ Validation will fail if the length of the string is not equal to the length specified.
+
+ Type of object being validated
+ The rule builder on which the validator should be defined
+
@@ -1429,6 +2428,58 @@
The regular expression to check the value against.
+
+
+ Defines a regular expression validator on the current rule builder, but only for string properties.
+ Validation will fail if the value returned by the lambda does not match the regular expression.
+
+ Type of object being validated
+ The rule builder on which the validator should be defined
+ The regular expression to check the value against.
+
+
+
+
+ Defines a regular expression validator on the current rule builder, but only for string properties.
+ Validation will fail if the value returned by the lambda does not match the regular expression.
+
+ Type of object being validated
+ The rule builder on which the validator should be defined
+ The regular expression to use
+
+
+
+
+ Defines a regular expression validator on the current rule builder, but only for string properties.
+ Validation will fail if the value returned by the lambda does not match the regular expression.
+
+ Type of object being validated
+ The rule builder on which the validator should be defined
+ The regular expression to use
+
+
+
+
+ Defines a regular expression validator on the current rule builder, but only for string properties.
+ Validation will fail if the value returned by the lambda does not match the regular expression.
+
+ Type of object being validated
+ The rule builder on which the validator should be defined
+ The regular expression to check the value against.
+ Regex options
+
+
+
+
+ Defines a regular expression validator on the current rule builder, but only for string properties.
+ Validation will fail if the value returned by the lambda does not match the regular expression.
+
+ Type of object being validated
+ The rule builder on which the validator should be defined
+ The regular expression to check the value against.
+ Regex options
+
+
Defines a regular expression validator on the current rule builder, but only for string properties.
@@ -1464,7 +2515,7 @@
- Defines an 'equals' validator on the current rule builder.
+ Defines an 'equals' validator on the current rule builder.
Validation will fail if the specified value is not equal to the value of the property.
Type of object being validated
@@ -1489,7 +2540,7 @@
Defines a predicate validator on the current rule builder using a lambda expression to specify the predicate.
- Validation will fail if the specified lambda returns false.
+ Validation will fail if the specified lambda returns false.
Validation will succeed if the specifed lambda returns true.
Type of object being validated
@@ -1501,7 +2552,7 @@
Defines a predicate validator on the current rule builder using a lambda expression to specify the predicate.
- Validation will fail if the specified lambda returns false.
+ Validation will fail if the specified lambda returns false.
Validation will succeed if the specifed lambda returns true.
This overload accepts the object being validated in addition to the property being validated.
@@ -1514,7 +2565,45 @@
Defines a predicate validator on the current rule builder using a lambda expression to specify the predicate.
- Validation will fail if the specified lambda returns false.
+ Validation will fail if the specified lambda returns false.
+ Validation will succeed if the specifed lambda returns true.
+ This overload accepts the object being validated in addition to the property being validated.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ A lambda expression specifying the predicate
+
+
+
+
+ Defines an asynchronous predicate validator on the current rule builder using a lambda expression to specify the predicate.
+ Validation will fail if the specified lambda returns false.
+ Validation will succeed if the specifed lambda returns true.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ A lambda expression specifying the predicate
+
+
+
+
+ Defines an asynchronous predicate validator on the current rule builder using a lambda expression to specify the predicate.
+ Validation will fail if the specified lambda returns false.
+ Validation will succeed if the specifed lambda returns true.
+ This overload accepts the object being validated in addition to the property being validated.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ A lambda expression specifying the predicate
+
+
+
+
+ Defines an asynchronous predicate validator on the current rule builder using a lambda expression to specify the predicate.
+ Validation will fail if the specified lambda returns false.
Validation will succeed if the specifed lambda returns true.
This overload accepts the object being validated in addition to the property being validated.
@@ -1526,7 +2615,7 @@
- Defines a 'less than' validator on the current rule builder.
+ Defines a 'less than' validator on the current rule builder.
The validation will succeed if the property value is less than the specified value.
The validation will fail if the property value is greater than or equal to the specified value.
@@ -1538,7 +2627,7 @@
- Defines a 'less than' validator on the current rule builder.
+ Defines a 'less than' validator on the current rule builder.
The validation will succeed if the property value is less than the specified value.
The validation will fail if the property value is greater than or equal to the specified value.
@@ -1550,7 +2639,7 @@
- Defines a 'less than or equal' validator on the current rule builder.
+ Defines a 'less than or equal' validator on the current rule builder.
The validation will succeed if the property value is less than or equal to the specified value.
The validation will fail if the property value is greater than the specified value.
@@ -1562,7 +2651,7 @@
- Defines a 'less than or equal' validator on the current rule builder.
+ Defines a 'less than or equal' validator on the current rule builder.
The validation will succeed if the property value is less than or equal to the specified value.
The validation will fail if the property value is greater than the specified value.
@@ -1574,7 +2663,7 @@
- Defines a 'greater than' validator on the current rule builder.
+ Defines a 'greater than' validator on the current rule builder.
The validation will succeed if the property value is greater than the specified value.
The validation will fail if the property value is less than or equal to the specified value.
@@ -1586,7 +2675,7 @@
- Defines a 'greater than' validator on the current rule builder.
+ Defines a 'greater than' validator on the current rule builder.
The validation will succeed if the property value is greater than the specified value.
The validation will fail if the property value is less than or equal to the specified value.
@@ -1598,7 +2687,7 @@
- Defines a 'greater than or equal' validator on the current rule builder.
+ Defines a 'greater than or equal' validator on the current rule builder.
The validation will succeed if the property value is greater than or equal the specified value.
The validation will fail if the property value is less than the specified value.
@@ -1610,7 +2699,7 @@
- Defines a 'greater than or equal' validator on the current rule builder.
+ Defines a 'greater than or equal' validator on the current rule builder.
The validation will succeed if the property value is greater than or equal the specified value.
The validation will fail if the property value is less than the specified value.
@@ -1622,7 +2711,19 @@
- Defines a 'less than' validator on the current rule builder using a lambda expression.
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is less than the specified value.
+ The validation will fail if the property value is greater than or equal to the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ A lambda that should return the value being compared
+
+
+
+
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is less than the specified value.
The validation will fail if the property value is greater than or equal to the specified value.
@@ -1634,7 +2735,19 @@
- Defines a 'less than' validator on the current rule builder using a lambda expression.
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is less than the specified value.
+ The validation will fail if the property value is greater than or equal to the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ A lambda that should return the value being compared
+
+
+
+
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is less than the specified value.
The validation will fail if the property value is greater than or equal to the specified value.
@@ -1646,7 +2759,19 @@
- Defines a 'less than or equal' validator on the current rule builder using a lambda expression.
+ Defines a 'less than or equal' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is less than or equal to the specified value.
+ The validation will fail if the property value is greater than the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ The value being compared
+
+
+
+
+ Defines a 'less than or equal' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is less than or equal to the specified value.
The validation will fail if the property value is greater than the specified value.
@@ -1658,7 +2783,19 @@
- Defines a 'less than or equal' validator on the current rule builder using a lambda expression.
+ Defines a 'less than or equal' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is less than or equal to the specified value.
+ The validation will fail if the property value is greater than the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ The value being compared
+
+
+
+
+ Defines a 'less than or equal' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is less than or equal to the specified value.
The validation will fail if the property value is greater than the specified value.
@@ -1670,7 +2807,19 @@
- Defines a 'less than' validator on the current rule builder using a lambda expression.
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is greater than the specified value.
+ The validation will fail if the property value is less than or equal to the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ The value being compared
+
+
+
+
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is greater than the specified value.
The validation will fail if the property value is less than or equal to the specified value.
@@ -1682,7 +2831,19 @@
- Defines a 'less than' validator on the current rule builder using a lambda expression.
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is greater than the specified value.
+ The validation will fail if the property value is less than or equal to the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ The value being compared
+
+
+
+
+ Defines a 'less than' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is greater than the specified value.
The validation will fail if the property value is less than or equal to the specified value.
@@ -1694,7 +2855,31 @@
- Defines a 'less than' validator on the current rule builder using a lambda expression.
+ Defines a 'greater than' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is greater than or equal the specified value.
+ The validation will fail if the property value is less than the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ The value being compared
+
+
+
+
+ Defines a 'greater than' validator on the current rule builder using a lambda expression.
+ The validation will succeed if the property value is greater than or equal the specified value.
+ The validation will fail if the property value is less than the specified value.
+
+ Type of object being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+ The value being compared
+
+
+
+
+ Defines a 'greater than or equal to' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is greater than or equal the specified value.
The validation will fail if the property value is less than the specified value.
@@ -1706,7 +2891,7 @@
- Defines a 'less than' validator on the current rule builder using a lambda expression.
+ Defines a 'greater than or equal to' validator on the current rule builder using a lambda expression.
The validation will succeed if the property value is greater than or equal the specified value.
The validation will fail if the property value is less than the specified value.
@@ -1729,14 +2914,79 @@
Validates certain properties of the specified instance.
+ The validator this method is extending.
+ The instance of the type we are validating.
+ The names of the properties to validate.
+ A ValidationResult object containing any validation failures.
+
+
+
+ Validates an object using either a custom validator selector or a ruleset.
+
+ The validator this method is extending.
+ The instance of the type we are validating.
+ Optional: The selector to use. Selector and ruleset cannot both be specified.
+ Optional: The ruleset to validate against. Selector and ruleset cannot both be specified.
+ A ValidationResult object containing any validation failures
+
+
+
+ Validates certain properties of the specified instance asynchronously.
+
+ The current validator
+ The object to validate
+ Expressions to specify the properties to validate
+ A ValidationResult object containing any validation failures
+
+
+
+ Validates certain properties of the specified instance asynchronously.
+
+ The validator this method is extending.
The object to validate
The names of the properties to validate.
A ValidationResult object containing any validation failures.
+
+
+ Validates an object asynchronously using a custom validator selector or a ruleset
+
+ The validator this method is extending.
+ The instance of the type we are validating.
+ Optional: The selector to use. Selector and ruleset cannot both be specified.
+ Optional: The ruleset to validate against. Selector and ruleset cannot both be specified.
+ A Task for a ValidationResult object containing any validation failures.
+
Performs validation and then throws an exception if validation fails.
+ The validator this method is extending.
+ The instance of the type we are validating.
+
+
+
+ Performs validation and then throws an exception if validation fails.
+
+ The validator this method is extending.
+ The instance of the type we are validating.
+ The ruleset to validate against.
+
+
+
+ Performs validation and then throws an exception if validation fails.
+
+ The validator this method is extending.
+ The instance of the type we are validating.
+ The ruleset to validate against.
+
+
+
+ Performs validation asynchronously and then throws an exception if validation fails.
+
+ The validator this method is extending.
+ The instance of the type we are validating.
+ Optional: a ruleset when need to validate against.
@@ -1791,6 +3041,15 @@
Defines a credit card validator for the current rule builder that ensures that the specified string is a valid credit card number.
+
+
+ Defines a enum value validator on the current rule builder that ensures that the specific value is a valid enum value.
+
+ Type of Enum being validated
+ Type of property being validated
+ The rule builder on which the validator should be defined
+
+
Default options that can be used to configure a validator.
@@ -1798,14 +3057,14 @@
- Specifies the cascade mode for failures.
+ Specifies the cascade mode for failures.
If set to 'Stop' then execution of the rule will stop once the first validator in the chain fails.
If set to 'Continue' then all validators in the chain will execute regardless of failures.
- Specifies a custom action to be invoked when the validator fails.
+ Specifies a custom action to be invoked when the validator fails.
@@ -1821,22 +3080,47 @@
The error message to use
-
+
+
+ Specifies a custom error message to use if validation fails.
+
+ The current rule
+ The error message to use
+ Additional arguments to be specified when formatting the custom error message.
+
+
+
+
+ Specifies a custom error message to use if validation fails.
+
+ The current rule
+ The error message to use
+ Additional property values to be included when formatting the custom error message.
+
+
+
Specifies a custom error message to use if validation fails.
The current rule
The error message to use
- Additional arguments to be specified when formatting the custom error message.
+ Additional property values to use when formatting the custom error message.
-
+
- Specifies a custom error message to use if validation fails.
+ Specifies a custom error message to use when validation fails.
The current rule
- The error message to use
- Additional property values to be included when formatting the custom error message.
+ Delegate that will be invoked to retrieve the localized message.
+
+
+
+
+ Specifies a custom error code to use if validation fails.
+
+ The current rule
+ The error code to use
@@ -1874,17 +3158,39 @@
The resource accessor builder to use.
-
+
+
+ Specifies a custom error message resource to use when validation fails.
+
+ The current rule
+ The resource to use as an expression, eg () => Messages.MyResource
+ Name of resource
+ Custom message format args
+ Type of resource representing a resx file
+
+
+
+
+ Specifies a custom error message resource to use when validation fails.
+
+ The current rule
+ Resource name
+ Custom message format args
+ Resource type representing a resx file
+
+
+
- Specifies a custom error code to use when validation fails
+ Specifies a custom error message resource to use when validation fails.
The current rule
- The error code to use
+ Resource type representing a resx file
+ Name of resource
- Specifies a condition limiting when the validator should run.
+ Specifies a condition limiting when the validator should run.
The validator will only be executed if the result of the lambda returns true.
The current rule
@@ -1894,7 +3200,7 @@
- Specifies a condition limiting when the validator should not run.
+ Specifies a condition limiting when the validator should not run.
The validator will only be executed if the result of the lambda returns false.
The current rule
@@ -1902,6 +3208,34 @@
Whether the condition should be applied to the current rule or all rules in the chain
+
+
+ Specifies an asynchronous condition limiting when the validator should run.
+ The validator will only be executed if the result of the lambda returns true.
+
+ The current rule
+ A lambda expression that specifies a condition for when the validator should run
+ Whether the condition should be applied to the current rule or all rules in the chain
+
+
+
+
+ Specifies an asynchronous condition limiting when the validator should not run.
+ The validator will only be executed if the result of the lambda returns false.
+
+ The current rule
+ A lambda expression that specifies a condition for when the validator should not run
+ Whether the condition should be applied to the current rule or all rules in the chain
+
+
+
+
+ Triggers an action when the rule passes. Typically used to configure dependent rules. This applies to all preceding rules in the chain.
+
+ The current rule
+ An action to be invoked if the rule is valid
+
+
Specifies a custom property name to use within the error message.
@@ -1912,7 +3246,7 @@
- Specifies a localized name for the error message.
+ Specifies a localized name for the error message.
The current rule
The resource to use as an expression, eg () => Messages.MyResource
@@ -1927,6 +3261,15 @@
The property name to use
+
+
+ Overrides the name of the property associated with this rule.
+ NOTE: This is a considered to be an advanced feature. 99% of the time that you use this, you actually meant to use WithName.
+
+ The current rule
+ The property name to use
+
+
Specifies custom state that should be stored alongside the validation message when validation fails for this rule.
@@ -1979,27 +3322,27 @@
- Specifies the severity of a rule.
+ Specifies the severity of a rule.
-
- Validator implementation that allows rules to be defined without inheriting from AbstractValidator.
-
-
-
- public class Customer {
- public int Id { get; set; }
- public string Name { get; set; }
+
+ Validator implementation that allows rules to be defined without inheriting from AbstractValidator.
+
+
+
+ public class Customer {
+ public int Id { get; set; }
+ public string Name { get; set; }
- public static readonly InlineValidator<Customer> Validator = new InlineValidator<Customer> {
- v => v.RuleFor(x => x.Name).NotNull(),
- v => v.RuleFor(x => x.Id).NotEqual(0),
- }
- }
-
-
-
+ public static readonly InlineValidator<Customer> Validator = new InlineValidator<Customer> {
+ v => v.RuleFor(x => x.Name).NotNull(),
+ v => v.RuleFor(x => x.Id).NotEqual(0),
+ }
+ }
+
+
+
@@ -2033,6 +3376,28 @@
Validation Context
A collection of validation failures
+
+
+ Performs validation using a validation context and returns a collection of Validation Failures asynchronoulsy.
+
+ Validation Context
+ Cancellation token
+ A collection of validation failures
+
+
+
+ Applies a condition to the rule
+
+
+
+
+
+
+ Applies a condition to the rule asynchronously
+
+
+
+
Defines a validator for a particualr type.
@@ -2046,6 +3411,14 @@
The instance to validate
A ValidationResult object containing any validation failures.
+
+
+ Validate the specified instance asynchronously
+
+ The instance to validate
+
+ A ValidationResult object containing any validation failures.
+
Sets the cascade mode for all rules within this validator.
@@ -2063,6 +3436,14 @@
A ValidationResult containing any validation failures
+
+
+ Validates the specified instance asynchronously
+
+
+ Cancellation token
+ A ValidationResult containing any validation failures
+
Validates the specified instance.
@@ -2070,6 +3451,14 @@
A ValidationContext
A ValidationResult object containy any validation failures.
+
+
+ Validates the specified instance asynchronously.
+
+ A ValidationContext
+ Cancellation token
+ A ValidationResult object containy any validation failures.
+
Creates a hook to access various meta data properties
@@ -2088,7 +3477,7 @@
- Gets the name display name for a property.
+ Gets the name display name for a property.
@@ -2121,333 +3510,419 @@
Gets the validator for the specified type.
-
+
- Builds a delegate for retrieving a localised resource from a resource type and property name.
+ Defines a validation failure
-
+
- Gets a function that can be used to retrieve a message from a resource type and resource name.
+ Creates a new validation failure.
-
+
- Builds a delegate for retrieving a localised resource from a resource type and property name.
+ Creates a new ValidationFailure.
-
+
- Builds a function used to retrieve the resource.
+ The name of the property.
-
+
- Gets the PropertyInfo for a resource.
- ResourceType and ResourceName are ref parameters to allow derived types
- to replace the type/name of the resource before the delegate is constructed.
+ The error message
-
+
- Implemenetation of IResourceAccessorBuilder that can fall back to the default resource provider.
+ Gets or sets the error code.
-
+
- Gets the PropertyInfo for a resource.
- ResourceType and ResourceName are ref parameters to allow derived types
- to replace the type/name of the resource before the delegate is constructed.
+ The property value that caused the failure.
-
+
- Provides error message templates
+ Custom state associated with the failure.
-
+
- Construct the error message template
+ Custom severity level associated with the failure.
- Error message template
-
+
- The name of the resource if localized.
+ Gets or sets the formatted message arguments.
+ These are values for custom formatted message in validator resource files
+ Same formatted message can be reused in UI and with same number of format placeholders
+ Like "Value {0} that you entered should be {1}"
-
+
- The type of the resource provider if localized.
+ Gets or sets the formatted message placeholder values.
+ Similar placeholders are defined in fluent validation library (check documentation)
-
+
- Represents a localized string.
+ The resource name used for building the message
-
+
- Creates a new instance of the LocalizedErrorMessageSource class using the specified resource name and resource type.
+ Creates a textual representation of the failure.
- The resource type
- The resource name
- Strategy used to construct the resource accessor
-
+
- Creates an IErrorMessageSource from an expression: () => MyResources.SomeResourceName
+ The result of running a validator
- The expression
- Strategy used to construct the resource accessor
- Error message source
-
+
- Construct the error message template
+ Whether validation succeeded
- Error message template
-
+
- The name of the resource if localized.
+ A collection of errors
-
+
- The type of the resource provider if localized.
+ Creates a new validationResult
-
+
- A strongly-typed resource class, for looking up localized strings, etc.
+ Creates a new ValidationResult from a collection of failures
+ List of which is later available through . This list get's copied.
+
+ Every caller is responsible for not adding null to the list.
+
-
+
- Returns the cached ResourceManager instance used by this class.
+ Rule builder that starts the chain
+
+
-
+
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
+ Rule builder
+
+
-
+
- Looks up a localized string similar to '{PropertyName}' is not a valid credit card number..
+ Associates a validator with this the property for this rule builder.
+ The validator to set
+
-
+
- Looks up a localized string similar to '{PropertyName}' is not a valid email address..
+ Associates an instance of IValidator with the current property rule.
+ The validator to use
-
+
- Looks up a localized string similar to '{PropertyName}' should be equal to '{PropertyValue}'..
+ Associates a validator provider with the current property rule.
+ The validator provider to use
-
+
- Looks up a localized string similar to '{PropertyName}' must be {MaxLength} characters in length. You entered {TotalLength} characters..
+ Rule builder
+
+
-
+
- Looks up a localized string similar to '{PropertyName}' must be between {From} and {To} (exclusive). You entered {Value}..
+ Validation context
+
-
+
- Looks up a localized string similar to '{PropertyName}' must be greater than '{ComparisonValue}'..
+ Creates a new validation context
+
-
+
- Looks up a localized string similar to '{PropertyName}' must be greater than or equal to '{ComparisonValue}'..
+ Creates a new validation context with a custom property chain and selector
+
+
+
-
+
- Looks up a localized string similar to '{PropertyName}' must be between {From} and {To}. You entered {Value}..
+ The object to validate
-
+
- Looks up a localized string similar to '{PropertyName}' must be between {MinLength} and {MaxLength} characters. You entered {TotalLength} characters..
+ Validation context
-
+
- Looks up a localized string similar to '{PropertyName}' must be less than '{ComparisonValue}'..
+ Creates a new validation context
+
-
+
- Looks up a localized string similar to '{PropertyName}' must be less than or equal to '{ComparisonValue}'..
+ Creates a new validation context with a property chain and validation selector
+
+
+
-
+
- Looks up a localized string similar to '{PropertyName}' should not be empty..
+ Property chain
-
+
- Looks up a localized string similar to '{PropertyName}' should not be equal to '{PropertyValue}'..
+ Object being validated
-
+
- Looks up a localized string similar to '{PropertyName}' must not be empty..
+ Selector
-
+
- Looks up a localized string similar to The specified condition was not met for '{PropertyName}'..
+ Whether this is a child context
-
+
- Looks up a localized string similar to '{PropertyName}' is not in the correct format..
+ Creates a new ValidationContext based on this one
+
+
+
+
-
+
- Represents a static string.
+ Creates a new validation context for use with a child validator
+
+
+
+
+
+
+ An exception that represents failed validation
-
+
+
+ Validation errors
+
+
+
+
+ Creates a new ValidationException
+
+
+
+
+
+ Creates a new ValidationException
+
+
+
+
+
+
+ Creates a new ValidationException
+
+
+
+
+
+ Used for providing metadata about a validator.
+
+
+
+
+ Rules associated with the validator
+
+
+
+
+ Creates a ValidatorDescriptor
+
+
+
+
+
+ Gets the display name or a property property
+
+
+
+
+
+
+ Gets all members with their associated validators
+
+
+
+
+
+ Gets validators for a specific member
+
+
+
+
+
- Creates a new StringErrorMessageSource using the specified error message as the error template.
+ Gets rules for a specific member
- The error message template.
+
+
-
+
- Construct the error message template
+ Gets the member name from an expression
- Error message template
+
+
-
+
- The name of the resource if localized.
+ Gets validators for a member
+
+
+
-
+
- The type of the resource provider if localized.
+ Gets rules grouped by ruleset
+
-
+
- Creates a new validation failure.
+ Information about reulesets
-
+
- Creates a new ValidationFailure.
+ Creates a new RulesetMetadata
+
+
-
+
- The name of the property.
+ Rulset name
-
+
- The error message
+ Rules in the ruleset
-
+
- The error code
+ Factory for creating validators
-
+
- The property value that caused the failure.
+ Gets a validator for a type
+
+
-
+
- Custom state associated with the failure.
+ Gets a validator for a type
+
+
-
+
- Custom severity level associated with the failure.
+ Instantiates the validator
+
+
-
+
- Placeholder values used for string substitution when building ErrorMessage
+ Validator runtime options
-
+
- Creates a textual representation of the failure.
+ Default cascade mode
-
+
- Rule builder that starts the chain
+ Default property chain separator
-
-
-
+
- Rule builder
+ Default resource provider
-
-
-
+
- Associates a validator with this the property for this rule builder.
+ Customizations of validator selector
- The validator to set
-
-
+
- Associates an instance of IValidator with the current property rule.
+ Pluggable logic for resolving property names
- The validator to use
-
+
- Rule builder
+ Pluggable logic for resolving display names
-
-
-
+
- Used for providing metadata about a validator.
+ ValidatorSelector options
-
+
- Ensures that the property value is a valid credit card number.
+ Factory func for creating the default validator selector
-
+
- A custom property validator.
- This interface should not be implemented directly in your code as it is subject to change.
- Please inherit from PropertyValidator instead.
+ Factory func for creating the member validator selector
-
+
- Creates an error validation result for this validator.
+ Factory func for creating the ruleset validator selector
- The validator context
- Returns an error validation result.
@@ -2496,17 +3971,17 @@
Otherwise uses Resolve approach, which will throw an exception if resolution fails
-
+
Sets a persistent cookie which never expires
-
+
Sets a session cookie which expires after the browser session closes
-
+
Deletes a specified cookie by setting its value to empty and expiration to -1 days
@@ -3972,6 +5447,121 @@
Gets the connection string setting.
+
+
+ A strongly-typed resource class, for looking up localized strings, etc.
+
+
+
+
+ Returns the cached ResourceManager instance used by this class.
+
+
+
+
+ Overrides the current thread's CurrentUICulture property for all
+ resource lookups using this strongly typed resource class.
+
+
+
+
+ Looks up a localized string similar to Container service is built-in and read-only..
+
+
+
+
+ Looks up a localized string similar to Service type {0} does not inherit or implement {1}..
+
+
+
+
+ Looks up a localized string similar to Required dependency of type {0} named '{1}' could not be resolved..
+
+
+
+
+ Looks up a localized string similar to Required dependency of type {0} could not be resolved..
+
+
+
+
+ Looks up a localized string similar to Unknown scope..
+
+
+
+
+ Represents a builder for the class.
+
+
+
+
+ Initializes a new instance of the class with a specified .
+
+ The of the .
+
+
+
+ Adds an that reads configuration values from the Web.config file.
+
+ The .
+
+
+
+ Adds an that reads configuration values from the Web.config file.
+
+ The tier of the .
+ The .
+
+
+
+ Adds a that reads configuration values from a dictionary.
+
+ The dictionary of settings to add.
+ The .
+
+
+
+ Adds an that reads configuration values from environmental variables.
+
+ The .
+
+
+
+ Adds an that reads configuration values from environmental variables.
+
+ The tier of the .
+ The .
+
+
+
+ Adds an that reads configuration values from a text file at .
+
+ The path of the text file.
+ The .
+
+
+
+ Adds an that reads configuration values from a text file at with a specified .
+
+ The path of the text file.
+ The delimeter fo the text file.
+ The .
+
+
+
+ Adds an that reads configuration values from a text file at with a specified .
+
+ The path of the text file.
+ The delimeter fo the text file.
+ The tier of the .
+ The .
+
+
+
+ Builds an .
+
+ An .
+
Would've preferred to use [assembly: ContractNamespace] attribute but it is not supported in Mono
@@ -4866,91 +6456,6 @@
Cache client
Regular expression pattern to search cache keys
-
-
- Create new instance of CacheEntry.
-
-
-
- UTC time at which CacheEntry expires.
-
-
-
- Stores The value with key only if such key doesn't exist at the server yet.
-
-
-
-
- Adds or replaces the value with key.
-
-
-
-
- Adds or replaces the value with key.
-
-
-
-
- Replace the value with specified key if it exists.
-
-
-
-
- Add the value with key to the cache, set to never expire.
-
-
-
-
- Add or replace the value with key to the cache, set to never expire.
-
-
-
-
- Replace the value with key in the cache, set to never expire.
-
-
-
-
- Add the value with key to the cache, set to expire at specified DateTime.
-
- This method examines the DateTimeKind of expiresAt to determine if conversion to
- universal time is needed. The version of Add that takes a TimeSpan expiration is faster
- than using this method with a DateTime of Kind other than Utc, and is not affected by
- ambiguous local time during daylight savings/standard time transition.
-
-
-
- Add or replace the value with key to the cache, set to expire at specified DateTime.
-
- This method examines the DateTimeKind of expiresAt to determine if conversion to
- universal time is needed. The version of Set that takes a TimeSpan expiration is faster
- than using this method with a DateTime of Kind other than Utc, and is not affected by
- ambiguous local time during daylight savings/standard time transition.
-
-
-
- Replace the value with key in the cache, set to expire at specified DateTime.
-
- This method examines the DateTimeKind of expiresAt to determine if conversion to
- universal time is needed. The version of Replace that takes a TimeSpan expiration is faster
- than using this method with a DateTime of Kind other than Utc, and is not affected by
- ambiguous local time during daylight savings/standard time transition.
-
-
-
- Add the value with key to the cache, set to expire after specified TimeSpan.
-
-
-
-
- Add or replace the value with key to the cache, set to expire after specified TimeSpan.
-
-
-
-
- Replace the value with key in the cache, set to expire after specified TimeSpan.
-
-
Plugin adds support for Cross-origin resource sharing (CORS, see http://www.w3.org/TR/access-control/).
@@ -5429,47 +6934,6 @@
-
-
- A strongly-typed resource class, for looking up localized strings, etc.
-
-
-
-
- Returns the cached ResourceManager instance used by this class.
-
-
-
-
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
-
-
-
-
- Looks up a localized string similar to Container service is built-in and read-only..
-
-
-
-
- Looks up a localized string similar to Service type {0} does not inherit or implement {1}..
-
-
-
-
- Looks up a localized string similar to Required dependency of type {0} named '{1}' could not be resolved..
-
-
-
-
- Looks up a localized string similar to Required dependency of type {0} could not be resolved..
-
-
-
-
- Looks up a localized string similar to Unknown scope..
-
-
Gets string value from Items[name] then Cookies[name] if exists.
@@ -5719,6 +7183,11 @@
Called at the end of each request. Enables Request Scope.
+
+
+ Register callbacks to be called at the end of each request.
+
+
Register user-defined custom routes.
@@ -5754,6 +7223,11 @@
Add Request Filters for HTTP Requests
+
+
+ Add Async Request Filters for HTTP Requests
+
+
Add Response Filters for HTTP Responses
@@ -5764,6 +7238,11 @@
Add Request Filters for MQ/TCP Requests
+
+
+ Add Async Request Filters for MQ/TCP Requests
+
+
Add Response Filters for MQ/TCP Responses
diff --git a/lib/tests/ServiceStack.dll b/lib/tests/ServiceStack.dll
index 66781106..51fa03e1 100644
Binary files a/lib/tests/ServiceStack.dll and b/lib/tests/ServiceStack.dll differ