public HostedService(IBusControl busControl,
                      IGameActivityConfigRepository game,
                      IRegisterRewardConfigRepository register,
                      ILoginRewardConfigRepository login,
                      IBankruptcyConfigRepository bankrupt,
                      IInviteRewardConfigRepository invite)
 {
     _busControl = busControl;
     _game       = game;
     _register   = register;
     _login      = login;
     _bankrupt   = bankrupt;
     _invite     = invite;
 }
 public static void LoadConfig(IGameActivityConfigRepository game,
                               IRegisterRewardConfigRepository register,
                               ILoginRewardConfigRepository login,
                               IBankruptcyConfigRepository bankrupt,
                               IInviteRewardConfigRepository invite)
 {
     GameActConf = new AllGameActivityConfig()
     {
         AllGameConfigs = game.LoadMultiConfig().ToList()
     };
     RegisterRewardConf = register.LoadConfig();
     LoginRewardConf    = login.LoadConfig();
     BankruptcyConf     = bankrupt.LoadConfig();
     InviteRewardConf   = invite.LoadConfig();
 }