This repository was archived by the owner on Dec 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
src/AspNetCore/Contributions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77using Microsoft . Extensions . Options ;
88using Rocket . Surgery . AspNetCore . Mvc . Filters ;
99using Microsoft . AspNetCore . Mvc . Razor ;
10+ using Rocket . Surgery . Conventions . Reflection ;
1011
1112[ assembly: Convention ( typeof ( AspNetCoreConvention ) ) ]
1213
@@ -26,6 +27,12 @@ public class AspNetCoreConvention : IServiceConvention
2627 /// TODO Edit XML Comment Template for Register
2728 public void Register ( IServiceConventionContext context )
2829 {
30+ foreach ( var item in context . AssemblyCandidateFinder . GetCandidateAssemblies ( "Rocket.Surgery.AspNetCore" , "Microsoft.AspNetCore.Mvc" ) )
31+ {
32+ context . Services . AddMvcCore ( )
33+ . AddApplicationPart ( item ) ;
34+ }
35+
2936 context . Services . Configure < RazorViewEngineOptions > ( options =>
3037 {
3138 // {0} - Action Name
You can’t perform that action at this time.
0 commit comments