示例#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();
        }
 public SplitBrainResolverProvider(ActorSystem system)
 {
     this.system = system;
     settings    = new SplitBrainResolverSettings(system.Settings.Config);
 }