Exemplo n.º 1
0
 private void _Stop()
 {
     if (_context != null)
     {
         _context.Stop();
     }
 }
Exemplo n.º 2
0
        //public override TimeSpan Duration()
        //{
        //	if (_sequenceContext != null)
        //		return _sequenceContext.Sequence.Length;
        //	else
        //		return TimeSpan.Zero;
        //}

        public override void Stop()
        {
            if (_sequenceContext != null)
            {
                _sequenceContext.Stop();
            }
            base.Stop();
        }
Exemplo n.º 3
0
        private void StopSequence(HttpRequestHead request, IHttpResponseDelegate response)
        {
            var status = new Status();

            if (_context != null && _context.IsRunning)
            {
                status.Message = string.Format("Stopping {0}", _context.Sequence.Name);
                _context.Stop();
            }
            else
            {
                status.Message = "Nothing playing.";
            }
            SerializeResponse(status, response);
        }
Exemplo n.º 4
0
 public override void Stop()
 {
     _sequenceContext?.Stop();
     base.Stop();
 }