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 )
and then calls . 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.
Parameters
Name
Description
channel
ChannelBase
The channel to shut down.
logger
ILogger
An optional logger to record any errors during asynchronous shutdown.
[[["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."],[[["Version 4.3.1 of the `ChannelBaseExtensions` class is detailed, with links to documentation for other versions ranging from 3.2.0 to the latest 4.10.0."],["`ChannelBaseExtensions` provides extension methods for working with channels and inherits from the base `object` class, with a list of inherited members provided for reference."],["The class is part of the `Google.Api.Gax.Grpc` namespace, and is included in the `Google.Api.Gax.Grpc.dll` assembly."],["The primary method is `Shutdown`, which semi-synchronously shuts down a `ChannelBase` channel and optionally logs errors during asynchronous shutdown, accepting `ChannelBase` and `ILogger` parameters."]]],[]]