Beispiel #1
0
        public override void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress)
        {
            var scopeProvider = new AutofacExecuteActivityScopeProvider <TActivity, TArguments>(_scopeProvider, _name, _configureScope);
            var scopeFilter   = new ScopeExecuteFilter <TActivity, TArguments>(scopeProvider);
            var specification = new FilterPipeSpecification <ExecuteContext <TArguments> >(scopeFilter);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
        public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
        {
            var specification = new InMemoryExecuteContextOutboxSpecification <TArguments>();

            _configure?.Invoke(specification);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
        public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
        {
            var specification = new ExecuteContextRetryPipeSpecification <TArguments>(_cancellationToken);

            _configure?.Invoke(specification);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
Beispiel #4
0
        public override void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress)
        {
            var specification = new ExecuteContextTimeoutSpecification <TArguments>();

            _configure?.Invoke(specification);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
Beispiel #5
0
        public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
        {
            base.ExecuteActivityConfigured(configurator);

            var specification = new ExecuteContextRedeliveryPipeSpecification <TArguments>();

            _configure?.Invoke(specification);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
        public void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
            where TActivity : class, IExecuteActivity <TArguments>
            where TArguments : class
        {
            var scopeProviderType =
                typeof(DependencyInjectionFilterContextScopeProvider <,>).MakeGenericType(_filterType.MakeGenericType(typeof(TArguments)),
                                                                                          typeof(ExecuteContext <TArguments>));
            var scopeProvider = (IFilterContextScopeProvider <ExecuteContext <TArguments> >)Activator.CreateInstance(scopeProviderType, _serviceProvider);
            var filter        = new ScopedFilter <ExecuteContext <TArguments> >(scopeProvider);

            configurator.Arguments(a => a.UseFilter(filter));
        }
Beispiel #7
0
        public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
        {
            IPipeSpecification <ExecuteContext <TArguments> > specification = new GetMessageDataTransformSpecification <TArguments>(_repository);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
Beispiel #8
0
        public override void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress)
        {
            var specification = new InMemoryExecuteContextOutboxSpecification <TArguments>();

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }