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 ConsumePipeSpecification()
        {
            _specifications          = new List <IPipeSpecification <ConsumeContext> >();
            _consumePipeConfigurator = new PipeConfigurator <ConsumeContext>();
            _messageSpecifications   = new ConcurrentDictionary <Type, IMessageConsumePipeSpecification>();
            _observers = new ConsumePipeSpecificationObservable();

            _consumerObservers = new ConsumerConfigurationObservable();
            _sagaObservers     = new SagaConfigurationObservable();
            _handlerObservers  = new HandlerConfigurationObservable();
            _activityObservers = new ActivityConfigurationObservable();

            AutoStart = true;
        }