コード例 #1
0
        public CompensateActivityHostSpecification(CompensateActivityFactory <TActivity, TLog> activityFactory)
        {
            _activityFactory = activityFactory;

            _pipeSpecifications      = new List <IPipeSpecification <CompensateActivityContext <TActivity, TLog> > >();
            _routingSlipConfigurator = new RoutingSlipConfigurator();
            _filterFactory           = compensatePipe => new CompensateActivityHost <TActivity, TLog>(_activityFactory, compensatePipe);
        }
コード例 #2
0
        public ExecuteActivityHostSpecification(ExecuteActivityFactory <TActivity, TArguments> activityFactory, Uri compensateAddress)
        {
            _activityFactory = activityFactory;

            _pipeSpecifications      = new List <IPipeSpecification <ExecuteActivityContext <TActivity, TArguments> > >();
            _routingSlipConfigurator = new RoutingSlipConfigurator();
            _filterFactory           = executePipe => new ExecuteActivityHost <TActivity, TArguments>(_activityFactory, executePipe, compensateAddress);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }