Interface IValidationContextFactory
Namespace: LemonEdge.API.Core.Tasks
Assembly: LemonEdge.API.dll
Syntax
public interface IValidationContextFactory
Methods
Create(IBaseEntity, Dictionary<object, object>)
Creates a ValidationContext for use when validating objects with the Validator
Declaration
ValidationContext Create(IBaseEntity item, Dictionary<object, object> contextItems)
Parameters
Type | Name | Description |
---|---|---|
IBaseEntity | item | The IBaseEntity to be validated, |
Dictionary<object, object> | contextItems | A set of key/value pairs to make available to consumers of the ValidationContext |
Returns
Type | Description |
---|---|
ValidationContext |