public SqsMessageProducerFactory( AWSMessagingGatewayConnection connection, SqsPublication sqsPublication) { _connection = connection; _sqsPublication = sqsPublication; }
/// <summary> /// Initializes a new instance of the <see cref="SqsMessageProducer"/> class. /// </summary> /// <param name="connection">How do we connect to AWS in order to manage middleware</param> /// <param name="publication">Configuration of a producer</param> public SqsMessageProducer(AWSMessagingGatewayConnection connection, SqsPublication publication) : base(connection) { _connection = connection; _topicArn = EnsureTopic(new RoutingKey(publication.RoutingKey), publication.SnsAttributes, publication.MakeChannels); MaxOutStandingMessages = publication.MaxOutStandingMessages; MaxOutStandingCheckIntervalMilliSeconds = publication.MaxOutStandingMessages; }
/// <summary> /// Initializes a new instance of the <see cref="SqsMessageProducer"/> class. /// </summary> /// <param name="connection">How do we connect to AWS in order to manage middleware</param> /// <param name="publication">Configuration of a producer</param> public SqsMessageProducer(AWSMessagingGatewayConnection connection, SqsPublication publication) : base(connection) { _connection = connection; _publication = publication; //If the user has already established these by external creation, copy them if (_publication.TopicArns != null && _publication.TopicArns.Keys.Any()) { foreach (var key in _publication.TopicArns.Keys) { _ensuredTopics.Add(key, _publication.TopicArns[key]); } } MaxOutStandingMessages = publication.MaxOutStandingMessages; MaxOutStandingCheckIntervalMilliSeconds = publication.MaxOutStandingMessages; }
/// <summary> /// Initializes a new instance of the <see cref="SqsMessageProducer"/> class. /// </summary> /// <param name="connection">How do we connect to AWS in order to manage middleware</param> /// <param name="publication">Configuration of a producer</param> public SqsMessageProducer(AWSMessagingGatewayConnection connection, SqsPublication publication) : base(connection) { _connection = connection; _topicArn = EnsureTopic(new RoutingKey(publication.RoutingKey), publication.SnsAttributes, publication.MakeChannels); }