Beispiel #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));
 }
 protected LeaderElectionSpec(LeaderElectionSpecConfig config)
     : base(config)
 {
     _config = config;
     _sortedRoles = ImmutableList.Create(
         _config.First,
         _config.Second,
         _config.Third,
         _config.Forth)
         .Sort(new RoleNameComparer(this));
 }