public static async Task <bool> Durable_DownloadVideo([ActivityTrigger] ExtractProcessData requestData, TraceWriter log)
        {
            log.Info($"Triggering DownloadVideo");

            using (var client = new HttpClient())
            {
                client.Timeout = TimeSpan.FromMinutes(10);

                Uri anotherFunctionUri = new Uri(requestData.reqUri.Replace(requestData.PathAndQuery, "/api/DownloadVideo/?code=" + downloadvideo_secret));

                var responseFromAnotherFunction = await client.PostAsJsonAsync(anotherFunctionUri, requestData);

                // process the response
                return(responseFromAnotherFunction.IsSuccessStatusCode);
            }
        }
        public static async Task <ExtractProcessData> Durable_GetBrandPosition([ActivityTrigger] ExtractProcessData requestData, TraceWriter log)
        {
            log.Info($"Triggering GetBrandPosition");

            using (var client = new HttpClient())
            {
                client.Timeout = TimeSpan.FromMinutes(10);
                Uri anotherFunctionUri = new Uri(requestData.reqUri.Replace(requestData.PathAndQuery, "/api/GetBrandPosition/" + requestData.videoid + "/?code=" + getbrandposition_secret));

                var responseFromAnotherFunction = await client.PostAsJsonAsync(anotherFunctionUri, requestData);

                // process the response
                var result = await responseFromAnotherFunction.Content.ReadAsStringAsync();

                return(JsonConvert.DeserializeObject <ExtractProcessData>(result));
            }
        }
        public static async Task <FinalResult> Durable_GetAddtlFrames([ActivityTrigger] ExtractProcessData requestData, TraceWriter log)
        {
            log.Info($"Triggering GetAddtlFrames");

            using (var client = new HttpClient())
            {
                client.Timeout = TimeSpan.FromMinutes(10);
                Uri anotherFunctionUri = new Uri(requestData.reqUri.Replace(requestData.PathAndQuery, "/api/GetAdditionalFrames/?code=" + getaddtlframes_secret));

                var responseFromAnotherFunction = await client.PostAsJsonAsync(anotherFunctionUri, requestData);

                // process the response
                var result = await responseFromAnotherFunction.Content.ReadAsStringAsync();

                var initresult  = JsonConvert.DeserializeObject <ExtractProcessData>(result);
                var finalResult = new FinalResult()
                {
                    filename = initresult.filename, endtime = initresult.endTime, starttime = initresult.startTime, framestart = initresult.framesStart, frameend = initresult.framesEnd
                };
                return(finalResult);
            }
        }