Esempio n. 1
0
 protected LeaderElectionSpec(LeaderElectionSpecConfig config)
     : base(config)
 {
     _config      = config;
     _sortedRoles = ImmutableList.Create(
         _config.First,
         _config.Second,
         _config.Third,
         _config.Forth)
                    .Sort(new RoleNameComparer(this));
 }
Esempio n. 2
0
 protected LeaderElectionSpec(LeaderElectionSpecConfig config)
     : base(config)
 {
     _config = config;
     _sortedRoles = ImmutableList.Create(
         _config.First,
         _config.Second,
         _config.Third,
         _config.Forth)
         .Sort(new RoleNameComparer(this));
 }