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); } }
public async Task InitAccounts() { var data = await _service.InitAccounts(_token); Console.WriteLine(data.ToJson()); }