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); }
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); }
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); }