private void unit_ActiveSourceChanged(object sender, EventArgs e)
        {
            AdSequencingPayload activeAdPod = sender as AdSequencingPayload;

            if (activeAdPod.ActiveSource == null)
            {
                ProcessNextAdInQueue(activeAdPod.AdQueue);
            }
        }
        private AdSequencingPayload TriggerAd(IAdSequencingTrigger Trigger)
        {
            var activeAdPod = new AdSequencingPayload(Trigger);

            activeAdPod.WasAtLivePosition = player.IsMediaLive && player.IsPositionLive;
            activeAdPod.ActiveSource      = ProcessNextAdInQueue(activeAdPod.AdQueue);
            if (activeAdPod.ActiveSource != null)
            {
                return(activeAdPod);
            }
            else
            {
                return(null);
            }
        }