Esempio n. 1
0
        public void Add(string item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            _state.Add(this, item);
        }
Esempio n. 2
0
        private void ExecuteCreate(ICreator creator, CreateAction create)
        {
            if (!creator.CanCreate(create))
            {
                return;
            }

            var obj = creator.Create(create);

            State.Add(obj);
        }
Esempio n. 3
0
 public void Add(ITuple tuple)
 {
     AddDelay();
     currentState.Add(tuple);
 }
Esempio n. 4
0
 public static void SetActiveState(this IState <IPipeline> state, IThreadState activeState)
 {
     state.Add(StateKeys.ActiveState, activeState);
 }
Esempio n. 5
0
 public static void SetDurationToIgnoreOnFailure(this IState <IPipeline> state, TimeSpan[] timeSpans)
 {
     state.Add(StateKeys.DurationToIgnoreOnFailure, timeSpans);
 }
Esempio n. 6
0
 public static void SetMaximumFailureCount(this IState <IPipeline> state, int count)
 {
     state.Add(StateKeys.MaximumFailureCount, count);
 }
Esempio n. 7
0
 public static void SetErrorQueue(this IState <IPipeline> state, IQueue queue)
 {
     state.Add(StateKeys.ErrorQueue, queue);
 }
Esempio n. 8
0
 public static void SetDeferredQueue(this IState <IPipeline> state, IQueue queue)
 {
     state.Add(StateKeys.DeferredQueue, queue);
 }
Esempio n. 9
0
 public static void SetWorkQueue(this IState state, IQueue queue)
 {
     state.Add(StateKeys.WorkQueue, queue);
 }
Esempio n. 10
0
 public void Add(ITuple tuple)
 {
     currentState.Add(tuple);
 }