Example #1
0
 public async Task StopAsync(CancellationToken cancellationToken)
 {
     _logger.LogInformation("Shuttingdown Rpc Channels Manager");
     _languageWorkerChannelManager.ShutdownChannels();
     _languageWorkerChannelManager.ShutdownProcessRegistry();
     await _rpcServer.KillAsync();
 }
 internal void ShutdownWebhostLanguageWorkerChannels()
 {
     _logger.LogDebug("{workerRuntimeConstant}={value}. Will shutdown all the worker channels that started in placeholder mode", LanguageWorkerConstants.FunctionWorkerRuntimeSettingName, _workerRuntime);
     _languageWorkerChannelManager.ShutdownChannels();
 }