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-04-17 UTC."],[[["This webpage details the `ChannelBaseExtensions` class, which provides extension methods for the `ChannelBase` type within the `Google.Api.Gax.Grpc` namespace."],["The `ChannelBaseExtensions` class inherits from the base `object` class, utilizing its standard methods like `Equals`, `GetHashCode`, and `ToString`."],["The primary function within this class is `Shutdown`, which enables the semi-synchronous shutdown of a specified channel and optionally logs any errors that occur during the process using an `ILogger`."],["The page provides documentation for multiple versions of the content, ranging from 3.2.0 to the latest 4.10.0, allowing the users to check various version of the documentation."]]],[]]