I have implemented a gRPC client in C#. Should I shutdown the channel in the destructor?
private readonly Channel channel;
~MyClient()
{
this.channel.ShutdownAsync().Wait();
}
I have implemented a gRPC client in C#. Should I shutdown the channel in the destructor?
private readonly Channel channel;
~MyClient()
{
this.channel.ShutdownAsync().Wait();
}