Example #1
0
        public AutofacCompensateActivityFactory(ILifetimeScope lifetimeScope, string name)
        {
            var lifetimeScopeProvider = new SingleLifetimeScopeProvider(lifetimeScope);

            var compensateActivityScopeProvider = new AutofacCompensateActivityScopeProvider <TActivity, TLog>(lifetimeScopeProvider, name);

            _factory = new ScopeCompensateActivityFactory <TActivity, TLog>(compensateActivityScopeProvider);
        }
Example #2
0
        public AutofacExecuteActivityFactory(ILifetimeScope lifetimeScope, string name)
        {
            var lifetimeScopeProvider = new SingleLifetimeScopeProvider(lifetimeScope);

            var executeActivityScopeProvider = new AutofacExecuteActivityScopeProvider <TActivity, TArguments>(lifetimeScopeProvider, name);

            _factory = new ScopeExecuteActivityFactory <TActivity, TArguments>(executeActivityScopeProvider);
        }
        public AutofacCompensateActivityFactory(ILifetimeScope lifetimeScope, string name, Action <ContainerBuilder, CompensateContext <TLog> > configureScope)
        {
            var lifetimeScopeProvider = new SingleLifetimeScopeProvider(lifetimeScope);

            var compensateActivityScopeProvider = new AutofacCompensateActivityScopeProvider <TActivity, TLog>(lifetimeScopeProvider, name, configureScope);

            _factory = new ScopeCompensateActivityFactory <TActivity, TLog>(compensateActivityScopeProvider);
        }
Example #4
0
        public AutofacExecuteActivityFactory(ILifetimeScope lifetimeScope, string name, Action <ContainerBuilder, ExecuteContext <TArguments> > configureScope)
        {
            var lifetimeScopeProvider = new SingleLifetimeScopeProvider(lifetimeScope);

            var executeActivityScopeProvider = new AutofacExecuteActivityScopeProvider <TActivity, TArguments>(lifetimeScopeProvider, name, configureScope);

            _factory = new ScopeExecuteActivityFactory <TActivity, TArguments>(executeActivityScopeProvider);
        }