Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use generic host builder rather than webhost #23

Open
VoIPTools opened this issue Mar 30, 2020 · 0 comments
Open

Use generic host builder rather than webhost #23

VoIPTools opened this issue Mar 30, 2020 · 0 comments
Assignees

Comments

@VoIPTools
Copy link

Is it true that with .Net Core 3.1 we are encouraged to use the generic host builder rather than the web host builder? If so, how? In the sample code for selfhost it shows:

        var host = new WebHostBuilder()
            .ConfigureLogging(factory => factory.AddConsole())
            .UseStartup<Startup>()
            .UseAzureRelay(options =>
            {
                options.UrlPrefixes.Add(connectionString);
            })
            .Build();

.UseAzureRelay(options... is not available for the generic host builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants