Esempio n. 1
0
 private static async Task BeginTask(string command, IDwollaService service)
 {
     if (!_tasks.ContainsKey(command))
     {
         WriteLine("Unrecognized option");
     }
     else
     {
         var type = _tasks[command];
         var task = (BaseTask)type.GetConstructor(Array.Empty <Type>()).Invoke(Array.Empty <object>());
         task.Service = service;
         await task.Run();
     }
 }
 public HomeController(IxCompanyRepository xCompanyRepository, IDwollaService dwollaService)
 {
     _xCompanyRepository = xCompanyRepository;
     _dwollaService      = dwollaService;
 }