Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CoreEx.Validation
usability improvements:Validator.CreateFor<T>
added to enable the creation of aCommonValidator<T>
instance for a specified typeT
(more purposeful name); synonym for existingCommonValidator.Create<T>
(unchanged).Validator.Null<T>
added to enable simplified specification of aIValidatorEx<T>
ofnull
to avoid explicitnull
casting.Collection
extension method has additional overload to pass in theIValidatorEx<TItem>
to use for each item in the collection; versus, having to useCollectionRuleItem.Create
.Dictionary
extension method has additional overload to pass in theIValidatorEx<TKey>
andIValidator<TValue>
to use for each entry in the dictionary; versus, having to useDictionaryRuleItem.Create
.MinimumCount
andMaximumCount
extension methods forICollection
added to enable explicit specification of these two basic validations.Validation.CreateCollection
renamed toValidation.CreateForCollection
and creates aCommonValidator<TColl>
.CollectionValidator
deprecated as theCommonValidator<TColl>
offers same; removes duplication of capability.Validation.CreateDictionary
renamed toValidation.CreateForDictionary
and creates aCommonValidator<TDict>
.DictionaryValidator
deprecated as theCommonValidator<TDict>
offers same; removes duplication of capability.ServiceBusReceiverHealthCheck
to perform a peek message on theServiceBusReceiver
as a means to determine health. UseIHealthChecksBuilder.AddServiceBusReceiverHealthCheck
to configure.FileLockSynchronizer
,BlobLeaseSynchronizer
andTableWorkStatePersistence
have had any file/blob/table validations/manipulations moved from the constructor to limit critical failures at startup from a DI perspective; now only performed where required/used. This also allows improved health check opportunities as means to verify.