Inheritance: IRabbitMqClusterConfigurator
コード例 #1
0
        public void UseCluster(Action<IRabbitMqClusterConfigurator> configureCluster)
        {
            var configurator = new RabbitMqClusterConfigurator();
            configureCluster(configurator);

            _settings.ClusterMembers = configurator.ClusterMembers;
            _settings.HostNameSelector = configurator.GetHostNameSelector();
        }
コード例 #2
0
        public void UseCluster(Action <IRabbitMqClusterConfigurator> configureCluster)
        {
            var configurator = new RabbitMqClusterConfigurator();

            configureCluster(configurator);

            _settings.ClusterMembers   = configurator.ClusterMembers;
            _settings.HostNameSelector = configurator.GetHostNameSelector();
        }