コード例 #1
0
 public virtual void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator,
                                                                Uri compensateAddress)
     where TActivity : class, IExecuteActivity <TArguments>
     where TArguments : class
 {
     NotifyObserver <RoutingSlip>();
 }
コード例 #2
0
        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));
        }
コード例 #3
0
        public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
        {
            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));
        }
コード例 #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));
        }
        public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
        {
            var specification = new InMemoryExecuteContextOutboxSpecification <TArguments>();

            _configure?.Invoke(specification);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
コード例 #6
0
        public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
        {
            var scopeProvider = new DependencyInjectionExecuteActivityScopeProvider <TActivity, TArguments>(_serviceProvider);
            var scopeFilter   = new ScopeExecuteFilter <TActivity, TArguments>(scopeProvider);
            var specification = new FilterPipeSpecification <ExecuteContext <TArguments> >(scopeFilter);

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
コード例 #7
0
        public void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
            where TActivity : class, IExecuteActivity <TArguments>
            where TArguments : class
        {
            var specification = new PrometheusExecuteActivitySpecification <TActivity, TArguments>();

            configurator.AddPipeSpecification(specification);

            configurator.ConnectActivityObserver(_observer);
        }
コード例 #8
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));
        }
コード例 #9
0
        public void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
            where TActivity : class, IExecuteActivity <TArguments>
            where TArguments : class
        {
            All(observer =>
            {
                observer.ExecuteActivityConfigured(configurator);

                return(true);
            });
        }
コード例 #10
0
        public void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress)
            where TActivity : class, IExecuteActivity <TArguments>
            where TArguments : class
        {
            All(observer =>
            {
                observer.ActivityConfigured(configurator, compensateAddress);

                return(true);
            });
        }
        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));
        }
コード例 #12
0
 public void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
     where TActivity : class, IExecuteActivity <TArguments>
     where TArguments : class
 {
     _activityObservers.ExecuteActivityConfigured(configurator);
 }
コード例 #13
0
 public void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress)
     where TActivity : class, IExecuteActivity <TArguments>
     where TArguments : class
 {
     _activityObservers.ActivityConfigured(configurator, compensateAddress);
 }
コード例 #14
0
 protected override void ConfigureExecuteActivity(
     IReceiveEndpointConfigurator endpointConfigurator,
     IExecuteActivityConfigurator <MakePizzaActivity, MakePizzaArgs> executeActivityConfigurator)
 {
     endpointConfigurator.UseMessageRetry(r => r.Immediate(3));
 }
 public void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
     where TActivity : class, IExecuteActivity <TArguments>
     where TArguments : class
 {
 }
コード例 #16
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));
        }
コード例 #17
0
 protected override void ConfigureExecuteActivity(IReceiveEndpointConfigurator endpointConfigurator,
                                                  IExecuteActivityConfigurator <PaymentActivity, PaymentArguments> executeActivityConfigurator)
 {
     base.ConfigureExecuteActivity(endpointConfigurator, executeActivityConfigurator);
 }
コード例 #18
0
        public override void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress)
        {
            var specification = new InMemoryExecuteContextOutboxSpecification <TArguments>();

            configurator.Arguments(x => x.AddPipeSpecification(specification));
        }
コード例 #19
0
 public void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator)
     where TActivity : class, IExecuteActivity <TArguments>
     where TArguments : class
 {
     configurator.AddScopedFilter <ExecuteActivityContext <TActivity, TArguments>, ExecuteContext <TArguments>, TArguments>(_filterType, _provider);
 }
コード例 #20
0
 void IExecuteActivityDefinition <TActivity, TArguments> .Configure(IReceiveEndpointConfigurator endpointConfigurator,
                                                                    IExecuteActivityConfigurator <TActivity, TArguments> consumerConfigurator)
 {
 }