예제 #1
0
        //factory, endpoint, connect

        public MailboxChannel(EndPoint endPoint, BasicQualityOfService basicQualityOfService)
        {
            _factory = new ConnectionFactory
            {
                Uri = new Uri(endPoint.ConnectionUrl),
                AutomaticRecoveryEnabled = endPoint.AutomaticRecoveryEnabled,
                NetworkRecoveryInterval  = endPoint.NetworkRecoveryInterval
            };
            _basicQualityOfService = basicQualityOfService;
        }
예제 #2
0
파일: Sink.cs 프로젝트: jkone27/AliceMQ
 public Sink(
     ISource source,
     string routingKey             = "",
     string deadLetterExchangeName = null,
     IDictionary <string, object> queueDeclareArguments = null,
     IDictionary <string, object> queueBindArguments    = null,
     ushort prefetchCount = 1,
     bool global          = false,
     ConfirmationPolicy confirmationPolicy = null)
 {
     QueueDeclareArguments = queueDeclareArguments ?? new Dictionary <string, object>();
     QueueBind             = new QueueBind(queueBindArguments ?? new Dictionary <string, object>(), routingKey);
     Source = source;
     DeadLetterExchangeName = deadLetterExchangeName;
     BasicQualityOfService  = new BasicQualityOfService(prefetchCount, global);
     ConfirmationPolicy     = confirmationPolicy ?? new ConfirmationPolicy();
 }