Esempio n. 1
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. 2
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. 3
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. 4
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. 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);
        }