Skip to content

Commit ab84567

Browse files
author
Chris Martinez
committed
Use non-generic convention builder for attribute declarations
1 parent 7f7196e commit ab84567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNetCore.Mvc.Versioning/Versioning/ApiVersioningApplicationModelProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void ApplyAttributeOrImplicitConventions( ControllerModel controller, Api
104104

105105
if ( IsDecoratedWithAttributes( controller ) )
106106
{
107-
var conventions = new ControllerApiVersionConventionBuilder<ControllerModel>();
107+
var conventions = new ControllerApiVersionConventionBuilder( controller.ControllerType );
108108
conventions.ApplyTo( controller );
109109
}
110110
else

0 commit comments

Comments
 (0)