зеркало из https://github.com/aspnet/Mvc.git
stylecop fix
This commit is contained in:
Родитель
447336b4f3
Коммит
d57c34392f
|
@ -23,7 +23,9 @@ namespace Microsoft.AspNet.Mvc.Internal
|
|||
if (services.GetServiceOrNull(typeof(MvcMarkerService)) == null)
|
||||
{
|
||||
throw new InvalidOperationException(Resources.FormatUnableToFindServices(
|
||||
"IServiceCollection.AddMvc()", "IApplicationBuilder.UseServices(...)", "IApplicationBuilder.UseMvc(...)"));
|
||||
"IServiceCollection.AddMvc()",
|
||||
"IApplicationBuilder.UseServices(...)",
|
||||
"IApplicationBuilder.UseMvc(...)"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,9 @@ namespace Microsoft.AspNet.Builder
|
|||
});
|
||||
}
|
||||
|
||||
public static IApplicationBuilder UseMvc([NotNull] this IApplicationBuilder app, [NotNull] Action<IRouteBuilder> configureRoutes)
|
||||
public static IApplicationBuilder UseMvc(
|
||||
[NotNull] this IApplicationBuilder app,
|
||||
[NotNull] Action<IRouteBuilder> configureRoutes)
|
||||
{
|
||||
// Verify if AddMvc was done before calling UseMvc
|
||||
// We use the MvcMarkerService to make sure if all the services were added.
|
||||
|
|
Загрузка…
Ссылка в новой задаче