protected override async Task CreateTask(System.Threading.CancellationToken cancelation) { var client = _Parent.ClientFactory.CreateClient(); var model = await client.GetWallet(Name); if (model == null) { Error("Wallet does not exist"); } else { _Parent.AddWallet(model, true); } }
protected override async Task CreateTask(System.Threading.CancellationToken cancelation) { var client = _Parent.ClientFactory.CreateClient(); _Parent.AddWallet(await client.CreateWallet(Name), true); }