public ExceptionActivityBinder <TInstance, TException> Add(Activity <TInstance> activity)
        {
            ActivityBinder <TInstance> activityBinder = new ExecuteActivityBinder <TInstance>(_event, activity);

            return(new CatchExceptionActivityBinder <TInstance, TException>(_machine, _event, _activities, activityBinder));
        }
Example #2
0
        EventActivityBinder <TInstance> EventActivityBinder <TInstance> .Add(Activity <TInstance> activity)
        {
            ActivityBinder <TInstance> activityBinder = new ExecuteActivityBinder <TInstance>(_event, activity);

            return(new TriggerEventActivityBinder <TInstance>(_machine, _event, _filter, _activities, activityBinder));
        }