Advertisement
Guest User

Untitled

a guest
May 26th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public Startup(IHostingEnvironment env){}
  2.  
  3. public static void Main(string[] args)
  4. {
  5. var builder = new ConfigurationBuilder()
  6. .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
  7. .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
  8. .AddJsonFile("hosting.json");
  9. builder.AddEnvironmentVariables();
  10. _configuration = builder.Build();
  11. ...
  12. var host = new WebHostBuilder()
  13. .UseKestrel(options =>
  14. {
  15. // options.ThreadCount = 4;
  16. options.NoDelay = true;
  17. options.UseHttps(testCertPath, _configuration["pfxPassword"]);
  18. options.UseConnectionLogging();
  19. })
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement