Ejemplo n.º 1
0
        public ITimeSeriesOutput POST([FromBody] WorkFlowCompareInput workflowInput)
        {
            WSWorkFlow        workFlow = new WSWorkFlow();
            ITimeSeriesOutput results  = workFlow.GetWorkFlowData(workflowInput);

            results.Metadata = Utilities.Metadata.AddToMetadata("request_url", this.Request.Path, results.Metadata);
            return(results);
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> POST([FromBody] WorkFlowCompareInput workflowInput)
        {
            WSWorkFlow        workFlow = new WSWorkFlow();
            var               stpWatch = System.Diagnostics.Stopwatch.StartNew();
            ITimeSeriesOutput results  = await workFlow.GetWorkFlowData(workflowInput);

            stpWatch.Stop();
            results.Metadata = Utilities.Metadata.AddToMetadata("retrievalTime", stpWatch.ElapsedMilliseconds.ToString(), results.Metadata);
            results.Metadata = Utilities.Metadata.AddToMetadata("request_url", this.Request.Path, results.Metadata);
            return(new ObjectResult(results));
        }