public virtual void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress) where TActivity : class, IExecuteActivity <TArguments> where TArguments : class { NotifyObserver <RoutingSlip>(); }
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)); }
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)); }
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)); }
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)); }
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); }
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 { All(observer => { observer.ExecuteActivityConfigured(configurator); return(true); }); }
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)); }
public void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator) where TActivity : class, IExecuteActivity <TArguments> where TArguments : class { _activityObservers.ExecuteActivityConfigured(configurator); }
public void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress) where TActivity : class, IExecuteActivity <TArguments> where TArguments : class { _activityObservers.ActivityConfigured(configurator, compensateAddress); }
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 { }
public override void ExecuteActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator) { IPipeSpecification <ExecuteContext <TArguments> > specification = new GetMessageDataTransformSpecification <TArguments>(_repository); configurator.Arguments(x => x.AddPipeSpecification(specification)); }
protected override void ConfigureExecuteActivity(IReceiveEndpointConfigurator endpointConfigurator, IExecuteActivityConfigurator <PaymentActivity, PaymentArguments> executeActivityConfigurator) { base.ConfigureExecuteActivity(endpointConfigurator, executeActivityConfigurator); }
public override void ActivityConfigured <TActivity, TArguments>(IExecuteActivityConfigurator <TActivity, TArguments> configurator, Uri compensateAddress) { var specification = new InMemoryExecuteContextOutboxSpecification <TArguments>(); configurator.Arguments(x => x.AddPipeSpecification(specification)); }
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); }
void IExecuteActivityDefinition <TActivity, TArguments> .Configure(IReceiveEndpointConfigurator endpointConfigurator, IExecuteActivityConfigurator <TActivity, TArguments> consumerConfigurator) { }