コード例 #1
0
        private void ReplicateLiveOutputsPage(string liveEventName, IPage <LiveOutput> liveOutputsPage)
        {
            if (liveOutputsPage.Any())
            {
                foreach (var liveOutput in liveOutputsPage)
                {
                    Helpers.WriteLine($"Copying live output {liveOutput.Name}...", 4);
                    string tempResult = "";

                    if (_destinationLiveOutputOperations.Get(DestinationAuth.ResourceGroup, DestinationAuth.AccountName, liveEventName, liveOutput.Name) == null)
                    {
                        _destinationLiveOutputOperations.Create(DestinationAuth.ResourceGroup, DestinationAuth.AccountName, liveEventName, liveOutput.Name, liveOutput);
                        tempResult = "Done";
                    }
                    else
                    {
                        tempResult = "Already exists";
                    }
                    Helpers.WriteLine(tempResult, 5);
                }
            }
            else
            {
                Helpers.WriteLine("No live outputs", 4);
            }
        }