Beispiel #1
0
        public HotSwapServiceConfiguration <TInterface> WithAutoRecovery(
            Action <AutoRecoveryConfiguration> configAction = default)
        {
            var autoRecoveryConfig = new AutoRecoveryConfiguration();

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

            services.AddScoped <IFailoverMonitor <TInterface>, FailoverMonitor <TInterface> >();

            return(this);
        }
Beispiel #2
0
 public void WithAutoRecovery(AutoRecoveryConfiguration config)
 {
     Flags.AutoRecoveryEnabled       = true;
     Flags.AutoRecoveryConfiguration = config;
 }