forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelBinderProvider.cs
More file actions
18 lines (16 loc) · 811 Bytes
/
ModelBinderProvider.cs
File metadata and controls
18 lines (16 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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.Controllers;
namespace System.Web.Http.ModelBinding
{
public abstract class ModelBinderProvider
{
/// <summary>
/// Find a binder for the given type
/// </summary>
/// <param name="configuration">a configuration object</param>
/// <param name="modelType">the type of the model to bind against.</param>
/// <returns>a binder, which can attempt to bind this type. Or null if the binder knows statically that it will never be able to bind the type.</returns>
public abstract IModelBinder GetBinder(HttpConfiguration configuration, Type modelType);
}
}