Exemple #1
0
 /// <summary>
 /// Enables graceful shutdown of the logging system by ensuring long-running logging
 /// operations have finished before shutting down the application host.
 /// </summary>
 /// <param name="host">The configured web host.</param>
 /// <returns>A reference to the configured web host.</returns>
 public static IWebHost FlushLogsOnShutdown(this IWebHost host)
 => host.FlushLogsOnShutdown <ApplicationShutdownHandler>();