public virtual async Task LoadDataFlows(ApplicationManagerClient appMgr, ApplicationDeveloperClient appDev, string entApiKey) { var resp = await appMgr.ListDataFlows(entApiKey, State.EnvironmentLookup); State.DataFlows = resp.Model; await SetActiveDataFlow(appDev, entApiKey, State?.ActiveDataFlow?.Lookup); }
public virtual async Task <DataFlowManagerState> LoadDataFlows() { logger.LogInformation("Loading Data Flows"); var resp = await appMgr.ListDataFlows(details.EnterpriseAPIKey, state.EnvironmentLookup); state.DataFlows = resp.Model; return(await SetActiveDataFlow(state?.ActiveDataFlow?.Lookup));; }
// Note - Don't think we need the method below, we won't be provisioning anything during limited trial // public virtual async Task DeployDataFlow(string entLookup, string dataFlowLookup) // { // var resp = await appDev.DeployDataFlow(new Personas.Applications.DeployDataFlowRequest() // { // DataFlowLookup = dataFlowLookup // }, entLookup, State.EnvironmentLookup); // State.IsCreating = !resp.Status; // await LoadDataFlows(entLookup); // } // LoadDataFlows - Used to load the Emulated Data Flows public virtual async Task LoadDataFlows(ApplicationManagerClient appMgr, ApplicationDeveloperClient appDev, string entLookup) { var resp = await appMgr.ListDataFlows(entLookup, State.EnvironmentLookup); if (State.EnvironmentLookup == "limited-lcu-int") { State.EmulatedDataFlows = resp.Model.Where(df => df.Lookup == "edf").ToList(); } else { State.EmulatedDataFlows = resp.Model.Where(df => df.Lookup == "ltd").ToList(); } //await SetActiveDataFlow(appDev, entLookup, State.ActiveDataFlow); }