private async Task GetGizmosSvcCancelAsync(CancellationToken cancellationToken) { var gizmoService = new GizmoService(); var gizmoList = await gizmoService.GetGizmosAsync(cancellationToken); GizmosGridView.DataSource = gizmoList; GizmosGridView.DataBind(); }
private async Task GetPWGsrvAsync() { var widgetService = new WidgetService(); var prodService = new ProductService(); var gizmoService = new GizmoService(); var widgetTask = widgetService.GetWidgetsAsync(); var prodTask = prodService.GetProductsAsync(); var gizmoTask = gizmoService.GetGizmosAsync(); await Task.WhenAll(widgetTask, prodTask, gizmoTask); var pwgVM = new ProdGizWidgetVM( widgetTask.Result, prodTask.Result, gizmoTask.Result ); WidgetGridView.DataSource = pwgVM.widgetList; WidgetGridView.DataBind(); ProductGridView.DataSource = pwgVM.prodList; ProductGridView.DataBind(); GizmoGridView.DataSource = pwgVM.gizmoList; GizmoGridView.DataBind(); }
private async Task GetGizmosSvcAsync() { var gizmoService = new GizmoService(); var gizmoList = await gizmoService.GetGizmosAsync(); GizmosGridView.DataSource = gizmoList; GizmosGridView.DataBind(); }