예제 #1
0
        internal FlowPath(IFlowBuilder builder)
        {
            _transitions   = builder.Transitions;
            _subscriptions = Enumerable.Repeat <IDisposable?>(null, _transitions.Length + 1).ToArray();

            UpdateTracking(builder.Root, 0);
        }
예제 #2
0
        internal FlowBuilderBuilder(IFlowBuilder builder, Func <object, IFlowChangeable> transition)
        {
            Root = builder.Root;

            var N = builder.Transitions.Length;

            Transitions = new Func <object, IFlowChangeable> [N + 1];
            Array.Copy(builder.Transitions, Transitions, N);
            Transitions[N] = transition;
        }
예제 #3
0
 internal FlowVarPath(IFlowBuilder builder) : base(builder)
 {
 }
예제 #4
0
 public static IFlowBuilder Source <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>(this IFlowBuilder self, Func <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> func)
 {
     self.SetSource(func);
     return(self);
 }
예제 #5
0
 public static IFlowBuilder Set <T>(this IFlowBuilder self, T t)
 {
     self.SetConstant <T>(t);
     return(self);
 }
예제 #6
0
 private IFlowBuilder Start(IFlowBuilder flow)
 {
     return(flow);
 }
예제 #7
0
 public ExceptionToErrorMapping()
 {
     _builder = new StandardBuilder()
                .UseErrorType <TestingFilteringError>();
 }
예제 #8
0
 public static IFlowBuilder Then <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this IFlowBuilder self, Action <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> todo)
 {
     self.AddStep(todo);
     return(self);
 }
예제 #9
0
 public static IFlowBuilder Then <T1, T2, T3, T4, T5, TResult>(this IFlowBuilder self, Func <T1, T2, T3, T4, T5, TResult> todo)
 {
     self.AddStep(todo);
     return(self);
 }
예제 #10
0
 public static IFlowBuilder Then <T1, T2, T3, T4, T5, T6, T7>(this IFlowBuilder self, Action <T1, T2, T3, T4, T5, T6, T7> todo)
 {
     self.AddStep(todo);
     return(self);
 }
예제 #11
0
 public static IFlowBuilder RunInParallel(this IFlowBuilder self)
 {
     self.Parallel = true;
     return(self);
 }
예제 #12
0
 public static IFlowBuilder Then <T1, T2>(this IFlowBuilder self, Action <T1, T2> todo)
 {
     self.AddStep(todo);
     return(self);
 }
예제 #13
0
 public static IFlowBuilder Container(this IFlowBuilder self, IContainer container)
 {
     self.SetContainer(container);
     return(self);
 }
예제 #14
0
 internal FlowReadOnlyListPath(IFlowBuilder builder) : base(builder)
 {
 }
예제 #15
0
 internal FlowListPath(IFlowBuilder builder) : base(builder)
 {
 }
예제 #16
0
 public static IFlowBuilder Then <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>(this IFlowBuilder self, Func <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> todo)
 {
     self.AddStep(todo);
     return(self);
 }
예제 #17
0
 public Filtering()
 {
     _builder = new StandardBuilder().UseErrorType <TestingFilteringError>();
 }
예제 #18
0
 public static IFlowBuilder PackedThen <TR1, TR2>(this IFlowBuilder self, Func <(TR1, TR2)> todo)
예제 #19
0
 public General()
 {
     _preDefined = new StandardBuilder()
                   .UseErrorType <TestingFilteringError>();
 }
예제 #20
0
 public static IFlowBuilder Source <T1, T2, T3, TResult>(this IFlowBuilder self, Func <T1, T2, T3, TResult> func)
 {
     self.SetSource(func);
     return(self);
 }
 public IFlowBuilder WhenReceived(IInputFilter filter, IOutputResponse response, IFlowBuilder flow = null)
 {
     return(this);
 }
예제 #22
0
 internal FlowSourcePath(IFlowBuilder builder) : base(builder)
 {
 }