Exemple #1
0
        public static ActivityConfigurator <TWorkflow, TInstance, TBody> Then <TWorkflow, TInstance, TBody>(
            this ActivityConfigurator <TWorkflow, TInstance, TBody> activityConfigurator, Action action)
            where TWorkflow : class
            where TInstance : class
        {
            var configurator = new DelegateConfigurator <TWorkflow, TInstance>(action);

            activityConfigurator.AddConfigurator(configurator);

            return(activityConfigurator);
        }
Exemple #2
0
        public static ExceptionConfigurator <TWorkflow, TInstance, TException> Then <TWorkflow, TInstance, TException>(
            this ExceptionConfigurator <TWorkflow, TInstance, TException> exceptionConfigurator, Action action)
            where TWorkflow : class
            where TInstance : class
            where TException : Exception
        {
            var configurator = new DelegateConfigurator <TWorkflow, TInstance>(action);

            exceptionConfigurator.AddConfigurator(configurator);

            return(exceptionConfigurator);
        }