public CompensateActivityHostSpecification(ICompensateActivityFactory <TActivity, TLog> activityFactory, IActivityConfigurationObserver observer)
        {
            _activityFactory = activityFactory;

            _activityPipeConfigurator   = new PipeConfigurator <CompensateActivityContext <TActivity, TLog> >();
            _compensatePipeConfigurator = new PipeConfigurator <CompensateContext <TLog> >();
            _routingSlipConfigurator    = new RoutingSlipConfigurator();
            _observers = new ActivityConfigurationObservable();

            _observers.Connect(observer);
        }
        public ExecuteActivityHostSpecification(IExecuteActivityFactory <TActivity, TArguments> activityFactory, IActivityConfigurationObserver observer)
        {
            _activityFactory = activityFactory;

            _activityPipeConfigurator = new PipeConfigurator <ExecuteActivityContext <TActivity, TArguments> >();
            _executePipeConfigurator  = new PipeConfigurator <ExecuteContext <TArguments> >();
            _routingSlipConfigurator  = new RoutingSlipConfigurator();
            _observers = new ActivityConfigurationObservable();

            _observers.Connect(observer);
        }
Esempio n. 3
0
 public ConnectHandle ConnectActivityConfigurationObserver(IActivityConfigurationObserver observer)
 {
     return(_activityObservers.Connect(observer));
 }