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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eChannelBaseExtensions\u003c/code\u003e class, which provides extension methods for the \u003ccode\u003eChannelBase\u003c/code\u003e type within the \u003ccode\u003eGoogle.Api.Gax.Grpc\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChannelBaseExtensions\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, utilizing its standard methods like \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe primary function within this class is \u003ccode\u003eShutdown\u003c/code\u003e, which enables the semi-synchronous shutdown of a specified channel and optionally logs any errors that occur during the process using an \u003ccode\u003eILogger\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"]]],[],null,[]]