Update ConfigureServicesBuilder exception message #502

This commit is contained in:
John Luo 2016-05-20 16:03:57 -07:00
parent e7b8c3f90a
commit 7f4e3645f2
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
if (parameters.Length > 1 ||
parameters.Any(p => p.ParameterType != typeof(IServiceCollection)))
{
throw new InvalidOperationException("ConfigureServices can take at most a single IServiceCollection parameter.");
throw new InvalidOperationException("The ConfigureServices method must either be parameterless or take only one parameter of type IServiceCollection.");
}
MethodInfo = configureServices;