Skip to content

Commit 648b153

Browse files
Chris Martinezcommonsensesoftware
authored andcommitted
Use non-generic convention builder for attribute declarations
1 parent 4993819 commit 648b153

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
@@ -110,7 +110,7 @@ static void ApplyAttributeOrImplicitConventions( ControllerModel controller, Api
110110

111111
if ( IsDecoratedWithAttributes( controller ) )
112112
{
113-
var conventions = new ControllerApiVersionConventionBuilder<ControllerModel>();
113+
var conventions = new ControllerApiVersionConventionBuilder( controller.ControllerType );
114114
conventions.ApplyTo( controller );
115115
}
116116
else

0 commit comments

Comments
 (0)