Exemple #1
0
 /// <summary>
 /// Block the calling thread until shutdown is triggered via Ctrl+C or SIGTERM.
 /// </summary>
 /// <param name="host">The running <see cref="IGameHost"/>.</param>
 public static void WaitForShutdown(this IGameHost host) =>
 host.WaitForShutdownAsync().GetAwaiter().GetResult();