Exemple #1
0
 /// <summary>
 /// stop the web host, grace lasts for 1 second, then remaining requests are jettisoned.
 /// </summary>
 public static void Shutdown()
 {
     Gate.Shutdown();
     WebHost.Shutdown();
 }
Exemple #2
0
 protected override void Dispose(bool disposing)
 {
     WebHost.Shutdown();
     base.Dispose(disposing);
 }