@@ -31,7 +31,7 @@ public static class WebHost
3131 /// <param name="app">A delegate that handles requests to the application.</param>
3232 /// <returns>A started <see cref="IWebHost"/> that hosts the application.</returns>
3333 public static IWebHost Start ( RequestDelegate app ) =>
34- Start ( url : null , app : app ) ;
34+ Start ( url : null ! , app : app ) ;
3535
3636 /// <summary>
3737 /// Initializes and starts a new <see cref="IWebHost"/> with pre-configured defaults.
@@ -40,7 +40,7 @@ public static IWebHost Start(RequestDelegate app) =>
4040 /// <param name="url">The URL the hosted application will listen on.</param>
4141 /// <param name="app">A delegate that handles requests to the application.</param>
4242 /// <returns>A started <see cref="IWebHost"/> that hosts the application.</returns>
43- public static IWebHost Start ( string ? url , RequestDelegate app )
43+ public static IWebHost Start ( string url , RequestDelegate app )
4444 {
4545 var startupAssemblyName = app . GetMethodInfo ( ) . DeclaringType ! . GetTypeInfo ( ) . Assembly . GetName ( ) . Name ;
4646 return StartWith ( url : url , configureServices : null , app : appBuilder => appBuilder . Run ( app ) , applicationName : startupAssemblyName ) ;
@@ -53,7 +53,7 @@ public static IWebHost Start(string? url, RequestDelegate app)
5353 /// <param name="routeBuilder">A delegate that configures the router for handling requests to the application.</param>
5454 /// <returns>A started <see cref="IWebHost"/> that hosts the application.</returns>
5555 public static IWebHost Start ( Action < IRouteBuilder > routeBuilder ) =>
56- Start ( url : null , routeBuilder : routeBuilder ) ;
56+ Start ( url : null ! , routeBuilder : routeBuilder ) ;
5757
5858 /// <summary>
5959 /// Initializes and starts a new <see cref="IWebHost"/> with pre-configured defaults.
@@ -62,7 +62,7 @@ public static IWebHost Start(Action<IRouteBuilder> routeBuilder) =>
6262 /// <param name="url">The URL the hosted application will listen on.</param>
6363 /// <param name="routeBuilder">A delegate that configures the router for handling requests to the application.</param>
6464 /// <returns>A started <see cref="IWebHost"/> that hosts the application.</returns>
65- public static IWebHost Start ( string ? url , Action < IRouteBuilder > routeBuilder )
65+ public static IWebHost Start ( string url , Action < IRouteBuilder > routeBuilder )
6666 {
6767 var startupAssemblyName = routeBuilder . GetMethodInfo ( ) . DeclaringType ! . GetTypeInfo ( ) . Assembly . GetName ( ) . Name ;
6868 return StartWith ( url , services => services . AddRouting ( ) , appBuilder => appBuilder . UseRouter ( routeBuilder ) , applicationName : startupAssemblyName ) ;
@@ -75,7 +75,7 @@ public static IWebHost Start(string? url, Action<IRouteBuilder> routeBuilder)
7575 /// <param name="app">The delegate that configures the <see cref="IApplicationBuilder"/>.</param>
7676 /// <returns>A started <see cref="IWebHost"/> that hosts the application.</returns>
7777 public static IWebHost StartWith ( Action < IApplicationBuilder > app ) =>
78- StartWith ( url : null , app : app ) ;
78+ StartWith ( url : null ! , app : app ) ;
7979
8080 /// <summary>
8181 /// Initializes and starts a new <see cref="IWebHost"/> with pre-configured defaults.
@@ -84,7 +84,7 @@ public static IWebHost StartWith(Action<IApplicationBuilder> app) =>
8484 /// <param name="url">The URL the hosted application will listen on.</param>
8585 /// <param name="app">The delegate that configures the <see cref="IApplicationBuilder"/>.</param>
8686 /// <returns>A started <see cref="IWebHost"/> that hosts the application.</returns>
87- public static IWebHost StartWith ( string ? url , Action < IApplicationBuilder > app ) =>
87+ public static IWebHost StartWith ( string url , Action < IApplicationBuilder > app ) =>
8888 StartWith ( url : url , configureServices : null , app : app , applicationName : null ) ;
8989
9090 private static IWebHost StartWith ( string ? url , Action < IServiceCollection > ? configureServices , Action < IApplicationBuilder > app , string ? applicationName )
@@ -132,7 +132,7 @@ private static IWebHost StartWith(string? url, Action<IServiceCollection>? confi
132132 /// </remarks>
133133 /// <returns>The initialized <see cref="IWebHostBuilder"/>.</returns>
134134 public static IWebHostBuilder CreateDefaultBuilder ( ) =>
135- CreateDefaultBuilder ( args : null ) ;
135+ CreateDefaultBuilder ( args : null ! ) ;
136136
137137 /// <summary>
138138 /// Initializes a new instance of the <see cref="WebHostBuilder"/> class with pre-configured defaults.
@@ -153,7 +153,7 @@ public static IWebHostBuilder CreateDefaultBuilder() =>
153153 /// </remarks>
154154 /// <param name="args">The command line args.</param>
155155 /// <returns>The initialized <see cref="IWebHostBuilder"/>.</returns>
156- public static IWebHostBuilder CreateDefaultBuilder ( string [ ] ? args )
156+ public static IWebHostBuilder CreateDefaultBuilder ( string [ ] args )
157157 {
158158 var builder = new WebHostBuilder ( ) ;
159159
0 commit comments