/* Ommited code */ public override async Task Initialize() { IsBusy = true; var items = await MyCustomService.GetItemsAsync(); // ... }
public Task Execute(IJobExecutionContext context) { IMyCustomService service = new MyCustomService(); return(service.Run()); }
public HomeController(MyCustomService customService, IWebAppService webAppService) { this.customService = customService; this.webAppService = webAppService; }