public static void Init(IConfiguration config, ICoinsRangeConfigRepository configRespository,
                         IRoomMatchRedisRepository redis)
 {
     _configRespository = configRespository;
     _redis             = redis;
     matchingGroup      = config["MatchingGroup"];
     LoadCoinsRangeConfig();
 }
 public HostedService(IBusControl busControl, IConfiguration configuration,
                      IRoomListConfigRepository roomRep, ICoinsRangeConfigRepository coinRangeRep,
                      IRoomMatchRedisRepository matchRep)
 {
     _busControl    = busControl;
     _configuration = configuration;
     _roomRep       = roomRep;
     _coinRangeRep  = coinRangeRep;
     _matchRep      = matchRep;
 }