Esempio n. 1
0
        public static SequenceHelper SendReplay <T>(this SequenceHelper sequence, Func <ActivityContext, T> expression)
        {
            Activity activity = Helpers.SendReplay <T>(expression);

            sequence.Activity(activity);
            return(sequence);
        }
Esempio n. 2
0
        public static SequenceHelper <InvokeMethod> InvokeMethod(this SequenceHelper sequence, Delegate action)
        {
            Activity activity = Helpers.InvokeMethod(action);

            sequence.Activity(activity);
            return(new SequenceHelper <InvokeMethod>(sequence));
        }
Esempio n. 3
0
        public static SequenceHelper SendReplay <T>(this SequenceHelper sequence, Variable <T> variable)
        {
            Activity activity = Helpers.SendReplay <T>(variable);

            sequence.Activity(activity);
            return(sequence);
        }
Esempio n. 4
0
        public static SequenceHelper Receive <T>(this SequenceHelper sequence, string operation, Variable <T> variable)
        {
            Activity activity = Helpers.Receive <T>(operation, variable);

            sequence.Activity(activity);
            return(sequence);
        }
Esempio n. 5
0
        public static SequenceHelper Assign <T>(this SequenceHelper sequence, Variable <T> variable, T value)
        {
            Activity activity = Helpers.Assign <T>(variable, value);

            sequence.Activity(activity);
            return(sequence);
        }
Esempio n. 6
0
        public static SequenceHelper Set(this SequenceHelper sequence, Action <Activity> lastActivity)
        {
            if (lastActivity != null && sequence.Last != null)
            {
                lastActivity.Invoke(sequence.Last);
            }

            return(sequence);
        }
Esempio n. 7
0
 public static SequenceHelper <InvokeMethod> SetParam <T>(this SequenceHelper <InvokeMethod> sequence, InArgument <T> argument)
 {
     sequence.Last.Parameters.Add(argument);
     return(sequence);
 }
Esempio n. 8
0
 public static SequenceHelper Activity(this SequenceHelper sequence, Activity activity)
 {
     sequence.AddActivity(activity);
     return(sequence);
 }