public void RegisterPartitionSlave(string partitionId, string slaveServerId, string slaveServerUrl)
        {
            //lock (Partitions) {
            var partition = Partitions[partitionId];

            AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
            var channel = GrpcChannel.ForAddress(slaveServerUrl);
            var client  = new BaseSlaveService.BaseSlaveServiceClient(channel);

            partition.SlaveServers.Add(new BaseServerPartition.SlaveInfo(slaveServerId, client));
            //}
        }
 public SlaveInfo(string serverId, BaseSlaveService.BaseSlaveServiceClient slaveChannel)
 {
     ServerId     = serverId;
     SlaveChannel = slaveChannel;
 }