Esempio n. 1
0
 public void WithRoundRobinSelection(RoundRobinConfiguration config)
 {
     Flags.RoundRobinEnabled       = true;
     Flags.RoundRobinConfiguration = config;
     Flags.RoundRobinConfiguration.IndexCurrent = 0;
     Flags.RoundRobinConfiguration.IndexMax     = ImplementationTypes.Count - 1;
 }
Esempio n. 2
0
        public HotSwapServiceConfiguration <TInterface> WithRoundRobinSelection(
            Action <RoundRobinConfiguration> configAction = default)
        {
            var autoRecoveryConfig = new RoundRobinConfiguration();

            configAction?.Invoke(autoRecoveryConfig);
            config.WithRoundRobinSelection(autoRecoveryConfig);

            return(this);
        }