diff --git a/src/Microsoft.AspNetCore.Hosting.Abstractions/HostingAbstractionsWebHostBuilderExtensions.cs b/src/Microsoft.AspNetCore.Hosting.Abstractions/HostingAbstractionsWebHostBuilderExtensions.cs index 7e62cbeac0..fdccdf9aa8 100644 --- a/src/Microsoft.AspNetCore.Hosting.Abstractions/HostingAbstractionsWebHostBuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Hosting.Abstractions/HostingAbstractionsWebHostBuilderExtensions.cs @@ -60,22 +60,6 @@ namespace Microsoft.AspNetCore.Hosting .UseSetting(WebHostDefaults.StartupAssemblyKey, startupAssemblyName); } - /// - /// Specify the assembly containing the server to be used by the web host. - /// - /// The to configure. - /// The name of the assembly containing the server to be used. - /// The . - public static IWebHostBuilder UseServer(this IWebHostBuilder hostBuilder, string assemblyName) - { - if (assemblyName == null) - { - throw new ArgumentNullException(nameof(assemblyName)); - } - - return hostBuilder.UseSetting(WebHostDefaults.ServerKey, assemblyName); - } - /// /// Specify the server to be used by the web host. ///