예제 #1
0
 public SqsMessageProducerFactory(
     AWSMessagingGatewayConnection connection,
     SqsPublication sqsPublication)
 {
     _connection     = connection;
     _sqsPublication = sqsPublication;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
        /// <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;
        }
예제 #4
0
 /// <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);
 }