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

Fix the TestServer overloads #518

Closed
davidfowl opened this issue Dec 10, 2015 · 3 comments
Closed

Fix the TestServer overloads #518

davidfowl opened this issue Dec 10, 2015 · 3 comments
Assignees
Milestone

Comments

@davidfowl
Copy link
Member

They are a mess https://github.com/aspnet/Hosting/blob/dev/src/Microsoft.AspNet.TestHost/TestServer.cs#L36-L96. We need to change this API to look more like WebHostBuilder so it can be configured without adding overloads.

@davidfowl
Copy link
Member Author

/cc @muratg @Tratcher

@Tratcher
Copy link
Member

Maybe this can consolidate down to something like:

var server = TestServer.Create(webHostBuilder =>
{
  webHostBuilder.UseStartup<MyStartup>();
});

@JunTaoLuo
Copy link
Contributor

Will be addressed by #525

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

3 participants