public static void Shutdown(this ChannelBase channel, ILogger logger = null)
Shuts down a channel semi-synchronously. This method initially calls Dispose()
if the channel implements IDisposable (e.g. in the case of GrpcChannel)
and then calls ShutdownAsync(). This method does not wait for the task
to complete, but observes any exceptions (whether the task is faulted or canceled), optionally logging
them to logger.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This document outlines the `ChannelBaseExtensions` class, which provides extension methods for the `ChannelBase` type within the `Google.Api.Gax.Grpc` namespace."],["The latest version of this API documented is 4.10.0, while this page documents version 4.4.0 of `Google.Api.Gax.Grpc.ChannelBaseExtensions`, and older versions are also listed."],["The `ChannelBaseExtensions` class inherits members from the base `object` type, including methods like `ToString()`, `Equals()`, and `GetHashCode()`."],["A key method provided is `Shutdown(ChannelBase, ILogger)`, which allows for the semi-synchronous shutdown of a channel, including optional logging of any exceptions during the shutdown process."],["The `Shutdown` method first calls the `Dispose()` method if it's implemented, then it calls the `ShutdownAsync()` method, without waiting for the completion of this task."]]],[]]