public ConnectionContextFactory(AmazonSqsHostSettings settings, IAmazonSqsHostTopology topology) { _settings = settings; _topology = topology; _description = settings.ToString(); }
public AmazonSqsConnectionContext(IConnection connection, IAmazonSqsHostConfiguration configuration, IAmazonSqsHostTopology hostTopology, CancellationToken cancellationToken) : base(cancellationToken) { _configuration = configuration; Topology = hostTopology; Connection = connection; }
public AmazonSqsHostConfiguration(IAmazonSqsBusConfiguration busConfiguration, AmazonSqsHostSettings settings, IAmazonSqsHostTopology topology) { Settings = settings; _topology = topology; _busConfiguration = busConfiguration; _host = new AmazonSqsHost(this); }
public AmazonSqsHost(IAmazonSqsHostConfiguration hostConfiguration, IAmazonSqsHostTopology hostTopology) : base(hostConfiguration, hostTopology) { _hostConfiguration = hostConfiguration; Topology = hostTopology; Add(_hostConfiguration.ConnectionContextSupervisor); }
public AmazonSqsConnectionContext(IConnection connection, IAmazonSqsHostConfiguration configuration, IAmazonSqsHostTopology hostTopology, CancellationToken cancellationToken) : base(cancellationToken) { _configuration = configuration; Topology = hostTopology; Connection = connection; _taskScheduler = new LimitedConcurrencyLevelTaskScheduler(1); }
public ConnectionContextFactory(IAmazonSqsHostConfiguration configuration, IAmazonSqsHostTopology hostTopology) { _configuration = configuration; _hostTopology = hostTopology; _connectionRetryPolicy = Retry.CreatePolicy(x => { x.Handle <AmazonSqsConnectException>(); x.Exponential(1000, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(3)); }); }
public AmazonSqsConnectionContext(IConnection connection, AmazonSqsHostSettings hostSettings, IAmazonSqsHostTopology topology, string description, CancellationToken cancellationToken) : base(new PayloadCache(), cancellationToken) { Connection = connection; HostSettings = hostSettings; Topology = topology; Description = description; _taskScheduler = new LimitedConcurrencyLevelTaskScheduler(1); }
public AmazonSqsHost(IAmazonSqsHostConfiguration hostConfiguration, IAmazonSqsHostTopology hostTopology) : base(hostConfiguration, hostTopology) { _hostConfiguration = hostConfiguration; _hostTopology = hostTopology; ConnectionRetryPolicy = Retry.CreatePolicy(x => { x.Handle <AmazonSqsTransportException>(); x.Exponential(1000, TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(3)); }); ConnectionContextSupervisor = new AmazonSqsConnectionContextSupervisor(hostConfiguration, hostTopology); }
public AmazonSqsHostConfiguration(IAmazonSqsBusConfiguration busConfiguration, IAmazonSqsTopologyConfiguration topologyConfiguration) : base(busConfiguration) { _busConfiguration = busConfiguration; _topologyConfiguration = topologyConfiguration; _hostSettings = new ConfigurationHostSettings(); var messageNameFormatter = new AmazonSqsMessageNameFormatter(); _hostTopology = new AmazonSqsHostTopology(this, messageNameFormatter, topologyConfiguration); _connectionContext = new Recycle <IConnectionContextSupervisor>(() => new ConnectionContextSupervisor(this, topologyConfiguration)); }
public AmazonSqsHost(IAmazonSqsBusConfiguration busConfiguration, AmazonSqsHostSettings settings, IAmazonSqsHostTopology topology) { _settings = settings; _topology = topology; ReceiveEndpoints = new ReceiveEndpointCollection(); ConnectionRetryPolicy = Retry.CreatePolicy(x => { x.Handle <AmazonSqsTransportException>(); x.Exponential(1000, TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(3)); }); ConnectionCache = new AmazonSqsConnectionCache(settings, _topology); ReceiveEndpointFactory = new AmazonSqsReceiveEndpointFactory(busConfiguration, this); }
public AmazonSqsHostConfiguration(IAmazonSqsBusConfiguration busConfiguration, IAmazonSqsTopologyConfiguration topologyConfiguration) : base(busConfiguration) { _busConfiguration = busConfiguration; _topologyConfiguration = topologyConfiguration; _hostSettings = new ConfigurationHostSettings(); var messageNameFormatter = new AmazonSqsMessageNameFormatter(); _hostTopology = new AmazonSqsHostTopology(this, messageNameFormatter, topologyConfiguration); ReceiveTransportRetryPolicy = Retry.CreatePolicy(x => { x.Handle <AmazonSqsTransportException>(); x.Exponential(1000, TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(3)); }); _connectionContext = new Recycle <IConnectionContextSupervisor>(() => new ConnectionContextSupervisor(this, topologyConfiguration)); }
public ConnectionContextFactory(IAmazonSqsHostConfiguration configuration, IAmazonSqsHostTopology hostTopology) { _configuration = configuration; _hostTopology = hostTopology; }
public AmazonSqsHost(IAmazonSqsHostConfiguration hostConfiguration, IAmazonSqsHostTopology hostTopology) : base(hostConfiguration, hostTopology) { _hostConfiguration = hostConfiguration; Topology = hostTopology; }
public AmazonSqsConnectionContextSupervisor(IAmazonSqsHostConfiguration configuration, IAmazonSqsHostTopology hostTopology) : base(new ConnectionContextFactory(configuration, hostTopology)) { }
public AmazonSqsConnectionCache(AmazonSqsHostSettings settings, IAmazonSqsHostTopology topology) : base(new ConnectionContextFactory(settings, topology)) { _description = settings.ToString(); }