public async Task <string> AMS_StreamingURL(
            [ActivityTrigger] IDurableActivityContext activityContext,
            ILogger log)
        {
            string inputValue = activityContext.GetInput <string>();
            var    data       = JsonConvert.DeserializeObject <ConfigAssetDTO>(inputValue);
            var    assetAMS   = await _amsService.GetAssetAMS(data.AssetID);

            var ams = await GetAmsCredential(log);

            IAzureMediaServicesClient client = ams.Client;

            var listUrl = new List <string>();
            StreamingLocator locator = await _amsService.CreateStreamingLocatorAsync(client, ams.ResourceGroup, ams.AccountName, data.OutputName, data.LocatorName);

            IList <string> urls = await _amsService.GetStreamingUrlsAsync(client, ams.ResourceGroup, ams.AccountName, locator.Name);

            foreach (var url in urls)
            {
                listUrl.Add(url);
            }

            string listStreamingURL = string.Join(",", listUrl.ToArray());

            assetAMS.StreamingUrl = listStreamingURL;
            await _amsService.UpdateAssetAMS(data.AssetID, assetAMS);

            return(listStreamingURL);
        }