Ejemplo n.º 1
0
        public static LiveSequence AddLiveSequence(this ISequencer This, Action <ISequencer> action)
        {
            var liveSequence = LiveSequence.Create(action);

            This.Add(liveSequence);
            return(liveSequence);
        }
Ejemplo n.º 2
0
        public static LiveSequence AddLiveSequence(this ISequencer This)
        {
            var liveSequence = new LiveSequence();

            This.Add(liveSequence);
            return(liveSequence);
        }
Ejemplo n.º 3
0
        public static LiveSequence Start()
        {
            var liveSequence = new LiveSequence();

            liveSequence.SubscribeAndForget();
            return(liveSequence);
        }
Ejemplo n.º 4
0
        public static LiveSequence Create(Action <ISequencer> action)
        {
            var sequence = new LiveSequence();

            action(sequence);
            return(sequence);
        }
        /// <summary>
        /// Tries to add given completable at the end of sequence, but if completable was already
        /// present in sequence, truncate everything after it instead.
        /// </summary>
        /// <returns>True if completable was added at the end of sequence, or False if completable
        /// was already present in sequence and everything after it was truncated instead.</returns>
        public static bool AddOrTruncateAfter(this LiveSequence This, ICompletable completable)
        {
            if (This.TruncateAfter(completable))
            {
                return(false);
            }

            This.Add(completable);
            return(true);
        }
 public static void AddComplete(this LiveSequence This) =>
 This.AddAction(This.Complete);