public ConnectionContextFactory(AmazonSqsHostSettings settings, IAmazonSqsHostTopology topology) { _settings = settings; _topology = topology; _description = settings.ToString(); }
public AmazonSqsReceiveEndpointBuilder(IAmazonSqsHostControl host, AmazonSqsHostSettings hostSettings, IAmazonSqsReceiveEndpointConfiguration configuration) : base(configuration) { _host = host; _hostSettings = hostSettings; _configuration = configuration; }
public AmazonSqsHostConfiguration(IAmazonSqsBusConfiguration busConfiguration, AmazonSqsHostSettings settings, IAmazonSqsHostTopology topology) { Settings = settings; _topology = topology; _busConfiguration = busConfiguration; _host = new AmazonSqsHost(this); }
public AmazonSqsHostConfiguration(IAmazonSqsBusConfiguration busConfiguration, IAmazonSqsTopologyConfiguration topologyConfiguration) { _busConfiguration = busConfiguration; _topologyConfiguration = topologyConfiguration; _hostSettings = new ConfigurationHostSettings(); _proxy = new AmazonSqsHostProxy(this); }
public IAmazonSqsHostConfiguration CreateHostConfiguration(AmazonSqsHostSettings settings) { var hostTopology = CreateHostTopology(settings.HostAddress); var hostConfiguration = new AmazonSqsHostConfiguration(this, settings, hostTopology); _hosts.Add(hostConfiguration); return(hostConfiguration); }
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 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 AmazonSqsMessageLatencyTransport(AmazonSqsHostSettings hostSettings, IMessageLatencySettings settings) { _hostSettings = hostSettings; _settings = settings; }
public AmazonSqsConnectionCache(AmazonSqsHostSettings settings, IAmazonSqsHostTopology topology) : base(new ConnectionContextFactory(settings, topology)) { _description = settings.ToString(); }