public async Task <IActionResult> Get(string id)
        {
            AzureStorageManager azStorageMgr = new AzureStorageManager(Globals.GetAppSetting("STORAGECONNECTIONSTRING"), "BdpFamilySanitizer");

            DesignAutomationRecord[] dar = await azStorageMgr.ReadAutomationRecord(_logTable, id);

            return(Ok(dar));
        }
        public async Task <IActionResult> Put(string id, [FromBody] string status)
        {
            AzureStorageManager azStorageMgr = new AzureStorageManager(Globals.GetAppSetting("STORAGECONNECTIONSTRING"), "BdpFamilySanitizer");

            DesignAutomationRecord[] dar = await azStorageMgr.ReadAutomationRecord(_logTable, id);

            IActionResult res = await azStorageMgr.UpdateLoggedWorkItemStatus(status, dar.First <DesignAutomationRecord>(), _logTable);

            return(res);
        }
Exemple #3
0
        private async void btnReadLog_Click(object sender, EventArgs e)
        {
            AzureStorageManager azStorageMgr = new AzureStorageManager(Environment.GetEnvironmentVariable("STORAGECONNECTIONSTRING"), "BdpFamilySanitizer");

            DesignAutomationRecord[] dars = await azStorageMgr.ReadAutomationRecord("DesignAutomationLog");

            logBox.Items.Clear();
            foreach (DesignAutomationRecord dar in dars)
            {
                logBox.Items.Add($"{dar.WorkItemId}  {dar.InputModelName} { dar.InputSource} {dar.WorkItemStatus}");
            }
        }