コード例 #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));
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #4
0
        public static SequenceHelper SendReplay <T>(this SequenceHelper sequence, Variable <T> variable)
        {
            Activity activity = Helpers.SendReplay <T>(variable);

            sequence.Activity(activity);
            return(sequence);
        }
コード例 #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);
        }