// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.AspNet.Mvc.ModelBinding.Validation { /// /// A context for . /// public class ModelValidatorProviderContext { /// /// Creates a new . /// /// The . public ModelValidatorProviderContext(ModelMetadata modelMetadata) { ModelMetadata = modelMetadata; } /// /// Gets the . /// public ModelMetadata ModelMetadata { get; } /// /// Gets the validator metadata. /// /// /// This property provides convenience access to . /// public IReadOnlyList ValidatorMetadata { get { return ModelMetadata.ValidatorMetadata; } } /// /// Gets the list of instances. instances /// should add validators to this list when /// /// is called. /// public IList Validators { get; } = new List(); } }