Пример #1
0
        protected SplitBrainResolverBase(TimeSpan stableAfter, DowningStrategy strategy)
        {
            StableAfter = stableAfter;
            Strategy    = strategy;

            settings = new SplitBrainResolverSettings(Context.System.Settings.Config);

            // ReSharper disable once VirtualMemberCallInConstructor
            Timers.StartPeriodicTimer(Tick.Instance, Tick.Instance, TickInterval);

            ResetStableDeadline();
        }
Пример #2
0
 public SplitBrainResolverProvider(ActorSystem system)
 {
     this.system = system;
     settings    = new SplitBrainResolverSettings(system.Settings.Config);
 }