Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Discussion: Remove UseServer overloads #767

Closed
davidfowl opened this issue May 24, 2016 · 1 comment
Closed

Discussion: Remove UseServer overloads #767

davidfowl opened this issue May 24, 2016 · 1 comment

Comments

@davidfowl
Copy link
Member

davidfowl commented May 24, 2016

As part of #731 we removed support for passing the server as an assembly name. Servers will provide extension methods that add types directly to the DI container for configuring a specific Server e.g.

public class Program
{
    public static void Main(string[] args)
    {
        var host = new WebHostBuilder()
            .UseKestrel()
            .UseStartup<Startup>()
            .Build();

        host.Run();
    }
}

In the above example UseKestrel() replaces UseServer("Microsoft.AspNetCore.Server.Kestrel"). It's also less error prone.

@davidfowl davidfowl added this to the Discussions milestone May 24, 2016
@davidfowl davidfowl changed the title Discussion for https://github.com/aspnet/Announcements/issues/182 Discussion: Remove UseServer overloads May 24, 2016
@muratg
Copy link

muratg commented May 12, 2017

We are closing this issue because no further action is planned for this issue. If you still have any issues or questions, please log a new issue with any additional details that you have.

@muratg muratg closed this as completed May 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants