/// <summary> /// Shuts down this environment. /// </summary> private void Close() { if (isClosed) { throw new InvalidOperationException("Close has already been called"); } threadPool.Stop(); GrpcNativeShutdown(); isClosed = true; debugStats.CheckOK(); }
/// <summary> /// Shuts down this environment. /// </summary> private void Close() { if (isClosed) { throw new InvalidOperationException("Close has already been called"); } threadPool.Stop(); grpcsharp_shutdown(); isClosed = true; // TODO: use proper logging here Console.WriteLine("GRPC shutdown."); }
/// <summary> /// Shuts down this environment. /// </summary> private void Close() { if (isClosed) { throw new InvalidOperationException("Close has already been called"); } threadPool.Stop(); grpcsharp_shutdown(); isClosed = true; debugStats.CheckOK(); Logger.Info("gRPC shutdown."); }