File tree 1 file changed +2
-3
lines changed
src/SimpleInjector.Integration.AspNetCore.Mvc
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ private static ApplicationPartManager GetApplicationPartManager(
134
134
"system. This is most likely caused by a missing call to services.AddMvcCore() or " +
135
135
"services.AddMvc() as part of the ConfigureServices(IServiceCollection) method of " +
136
136
"the Startup class. A call to one of those methods will ensure the registration " +
137
- "of the {1}." ,
137
+ "of the {1}. Make sure you make this call -before- calling services.AddSimpleInjector(). " ,
138
138
typeof ( ApplicationPartManager ) . FullName ,
139
139
typeof ( ApplicationPartManager ) . Name ) ) ;
140
140
}
@@ -148,8 +148,7 @@ private static ApplicationPartManager GetApplicationPartManager(
148
148
"for Simple Injector's {1} method to get this instance from ASP.NET Core's " +
149
149
"IServiceCollection. This is most likely because {2} was overridden by you or a " +
150
150
"third-party library. Make sure that you use the AddSingleton overload that takes " +
151
- "in an existing instance—i.e. call " +
152
- "services.AddSingleton<{2}>(new {2}())." ,
151
+ "in an existing instance—i.e. call services.AddSingleton<{2}>(new {2}())." ,
153
152
typeof ( ApplicationPartManager ) . FullName ,
154
153
methodName ,
155
154
typeof ( ApplicationPartManager ) . Name ) ) ;
You can’t perform that action at this time.
0 commit comments