Exemple #1
0
        public void Add(string item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

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

            var obj = creator.Create(create);

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