//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; }
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(); }