Created
July 20, 2017 04:35
-
-
Save WernerMairl/01d7a4d1269ec07eb5a9f3ab0ff26c88 to your computer and use it in GitHub Desktop.
WebHost Default Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void Main(string[] args) | |
{ | |
var config = new ConfigurationBuilder() | |
.AddJsonFile("hosting.json", optional: true) | |
.AddCommandLine(args) | |
.Build(); | |
var host = new WebHostBuilder() | |
.UseConfiguration(config) | |
.UseKestrel() | |
.Build(); | |
host.Run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment