public static async Task <string> CloseDataQC([ActivityTrigger] DataQCDataOpsCloseParameters parms, ILogger log) { log.LogInformation($"CloseDataQC: Starting"); DataOpParameters pipe = parms.Parameters; DataQCParameters qcParms = JObject.Parse(pipe.JsonParameters).ToObject <DataQCParameters>(); DataQC qc = new DataQC(pipe.StorageAccount); await qc.CloseDataQC(qcParms.DataConnector, parms.Failures); log.LogInformation($"CloseDataQC: Complete"); return("Data QC Closed"); }
public async Task <ActionResult <string> > CloseRulesExecution(string source, DataQCParameters qcParams) { try { if (qcParams == null) { return(BadRequest()); } string tmpConnString = Request.Headers["AzureStorageConnection"]; DataQC qc = new DataQC(tmpConnString); await qc.CloseDataQC(source, qcParams.Failures); } catch (Exception ex) { return(BadRequest(ex.ToString())); } return(Ok($"OK")); }