private void _Stop() { if (_context != null) { _context.Stop(); } }
//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(); }
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); }
public override void Stop() { _sequenceContext?.Stop(); base.Stop(); }