Address more PR comments
This commit is contained in:
parent
3a6541af10
commit
b5a6303bb6
|
|
@ -4,7 +4,7 @@
|
|||
namespace Microsoft.AspNetCore.Mvc.WebApiCompatShim
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates actions without attribute routes in a controller use WebAPI routing conventions.
|
||||
/// Indicates actions without attribute routes in a controller use ASP.NET Web API routing conventions.
|
||||
/// </summary>
|
||||
public interface IUseWebApiActionConventions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
namespace Microsoft.AspNetCore.Mvc.WebApiCompatShim
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates the model binding system should use WebAPI conventions for parameters of a controller's actions. For
|
||||
/// example, bind simple types from the URI.
|
||||
/// Indicates the model binding system should use ASP.NET Web API conventions for parameters of a controller's
|
||||
/// actions. For example, bind simple types from the URI.
|
||||
/// </summary>
|
||||
public interface IUseWebApiParameterConventions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using System;
|
|||
namespace Microsoft.AspNetCore.Mvc.WebApiCompatShim
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates actions without attribute routes in a controller use WebAPI routing conventions. w
|
||||
/// Indicates actions without attribute routes in a controller use ASP.NET Web API routing conventions.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public class UseWebApiActionConventionsAttribute : Attribute, IUseWebApiActionConventions
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ using System;
|
|||
namespace Microsoft.AspNetCore.Mvc.WebApiCompatShim
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates the model binding system should use WebAPI conventions for parameters of a controller's actions. For
|
||||
/// example, bind simple types from the URI.
|
||||
/// Indicates the model binding system should use ASP.NET Web API conventions for parameters of a controller's
|
||||
/// actions. For example, bind simple types from the URI.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public class UseWebApiParameterConventionsAttribute : Attribute, IUseWebApiParameterConventions
|
||||
|
|
|
|||
|
|
@ -6,18 +6,18 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
|
|||
/// <summary>
|
||||
/// <para>
|
||||
/// An type that designates an optional parameter for the purposes
|
||||
/// of WebAPI action overloading. Optional parameters do not participate in overloading, and
|
||||
/// of ASP.NET Web API action overloading. Optional parameters do not participate in overloading, and
|
||||
/// do not have to have a value for the action to be selected.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This has no impact when used without WebAPI action overloading.
|
||||
/// This has no impact when used without ASP.NET Web API action overloading.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public interface IOptionalBinderMetadata
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the parameter participates in WebAPI action overloading. If <c>true</c>,
|
||||
/// the parameter does not participate in overloading. Otherwise, it does.
|
||||
/// Gets a value indicating whether the parameter participates in ASP.NET Web API action overloading. If
|
||||
/// <c>true</c>, the parameter does not participate in overloading. Otherwise, it does.
|
||||
/// </summary>
|
||||
bool IsOptional { get; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue