示例#1
0
文件: MtClient.cs 项目: wildbunny/MT
        public async Task GetHistory()
        {
            var request = new AccountHistoryRpcClientRequest
            {
                Token = _token
            };

            var result = await _service.GetHistory(request.ToJson());
        }
示例#2
0
        public async Task <OperationResult> GetHistory()
        {
            var res = new OperationResult
            {
                Operation = "GetHistory",
                StartDate = DateTime.UtcNow
            };

            var request = new AccountHistoryRpcClientRequest
            {
                Token = _token
            };
            var result = await _service.GetHistory(request.ToJson());

            res.EndDate = DateTime.UtcNow;
            res.Result  = result;
            LogInfo($";{res.Duration};GetHistory: Items={result.Length}");
            return(res);
        }