/* Ommited code  */
    public override async Task Initialize()
    {
        IsBusy = true;
        var items = await MyCustomService.GetItemsAsync();

        // ...
    }
Example #2
0
        public Task Execute(IJobExecutionContext context)
        {
            IMyCustomService service = new MyCustomService();

            return(service.Run());
        }
Example #3
0
 public HomeController(MyCustomService customService, IWebAppService webAppService)
 {
     this.customService = customService;
     this.webAppService = webAppService;
 }