public override Task <BrokerReply> Add_broker(Micro request, ServerCallContext context) { BrokerReply reply = new BrokerReply(); ThriftConfig tc = ThriftConfig.CreateInstance(); tc.Add(request); reply.Reply = "1"; return(Task.FromResult(reply)); }
/// <summary> /// 添加 /// </summary> /// <param name="input"></param> /// <returns></returns> public bool add_broker(Dictionary <string, string> input) { ThriftConfig tc = ThriftConfig.CreateInstance(); return(tc.Add(input)); }