protected virtual void Dispose(bool state) { if (state) { _client = null; } ShutdownAsync().Wait(); }
public SummationClient(string host, int port) { _channel = new Channel(host, port, ChannelCredentials.Insecure); _client = new SummationServiceClient(_channel); }