KillServersAsync() публичный статический Метод

Requests immediate shutdown of all servers created by the current process.
public static KillServersAsync ( ) : Task
Результат Task
Пример #1
0
 /// <summary>
 /// Handler for AppDomain.DomainUnload, AppDomain.ProcessExit and AssemblyLoadContext.Unloading hooks.
 /// </summary>
 private static void HandleShutdown()
 {
     Task.WaitAll(GrpcEnvironment.ShutdownChannelsAsync(), GrpcEnvironment.KillServersAsync());
 }
Пример #2
0
 /// <summary>
 /// Handler for AppDomain.DomainUnload and AppDomain.ProcessExit hooks.
 /// </summary>
 private static void ShutdownHookHandler(object sender, EventArgs e)
 {
     Task.WaitAll(GrpcEnvironment.ShutdownChannelsAsync(), GrpcEnvironment.KillServersAsync());
 }