using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Dependency;
namespace Abp.Runtime.Validation
{
public class CustomValidationContext
{
///
/// List of validation results (errors). Add validation errors to this list.
///
public List Results { get; }
///
/// Can be used to resolve dependencies on validation.
///
public IIocResolver IocResolver { get; }
public CustomValidationContext(List results, IIocResolver iocResolver)
{
Results = results;
IocResolver = iocResolver;
}
}
}