forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIModelValidatorCache.cs
More file actions
21 lines (19 loc) · 880 Bytes
/
Copy pathIModelValidatorCache.cs
File metadata and controls
21 lines (19 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Web.Http.Metadata;
namespace System.Web.Http.Validation
{
/// <summary>
/// Defines a cache for <see cref="ModelValidator"/>s. This cache is keyed on the type or property that the
/// metadata is associated with.
/// </summary>
public interface IModelValidatorCache
{
/// <summary>
/// Returns the <see cref="ModelValidator"/>s for the given <paramref name="metadata"/>.
/// </summary>
/// <param name="metadata">The <see cref="ModelMetadata"/>.</param>
/// <returns>An array of <see cref="ModelValidator"/>s for the given <paramref name="metadata"/>.</returns>
ModelValidator[] GetValidators(ModelMetadata metadata);
}
}