示例#1
0
        public async Task <OperationResult> InitAccounts()
        {
            try
            {
                var res = new OperationResult
                {
                    Operation = "InitAccounts",
                    StartDate = DateTime.UtcNow
                };
                var initAccounts = await _service.InitAccounts(_token);

                res.EndDate = DateTime.UtcNow;
                res.Result  = initAccounts;
                LogInfo($";{res.Duration};InitAccounts: Demo={initAccounts.Demo.Length} Live={initAccounts.Live.Length}");
                return(res);
            }
            catch (Exception ex)
            {
                LogError(ex);
                return(null);
            }
        }
示例#2
0
文件: MtClient.cs 项目: wildbunny/MT
        public async Task InitAccounts()
        {
            var data = await _service.InitAccounts(_token);

            Console.WriteLine(data.ToJson());
        }