예제 #1
0
        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));
        }
예제 #2
0
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public bool add_broker(Dictionary <string, string> input)
        {
            ThriftConfig tc = ThriftConfig.CreateInstance();

            return(tc.Add(input));
        }