stylecop fix
This commit is contained in:
parent
447336b4f3
commit
d57c34392f
|
|
@ -23,7 +23,9 @@ namespace Microsoft.AspNet.Mvc.Internal
|
||||||
if (services.GetServiceOrNull(typeof(MvcMarkerService)) == null)
|
if (services.GetServiceOrNull(typeof(MvcMarkerService)) == null)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException(Resources.FormatUnableToFindServices(
|
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
|
// Verify if AddMvc was done before calling UseMvc
|
||||||
// We use the MvcMarkerService to make sure if all the services were added.
|
// We use the MvcMarkerService to make sure if all the services were added.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue