public MatchService(ILiteDbIdentityAsyncContext liteDbContext,
                     MatchSelectedTeamSteamIdentitiesService matchSelectedTeamSteamIdentitiesService,
                     MatchSelectedSteamIdentitiesService matchSelectedSteamIdentitiesService,
                     PavlovServerService pavlovServerService,
                     SteamIdentityService steamIdentityService,
                     RconService rconService,
                     MapsService mapsService,
                     TeamService teamService,
                     PavlovServerInfoService pavlovServerInfoService,
                     PavlovServerPlayerService pavlovServerPlayerService,
                     ServerSelectedModsService serverSelectedModsService,
                     TeamSelectedSteamIdentityService teamSelectedSteamIdentityService,
                     IToastifyService notyfService)
 {
     _notifyService = notyfService;
     _liteDb        = liteDbContext;
     _matchSelectedTeamSteamIdentitiesService = matchSelectedTeamSteamIdentitiesService;
     _matchSelectedSteamIdentitiesService     = matchSelectedSteamIdentitiesService;
     _pavlovServerService = pavlovServerService;
     _teamService         = teamService;
     _teamSelectedSteamIdentityService = teamSelectedSteamIdentityService;
     _steamIdentityService             = steamIdentityService;
     _rconService = rconService;
     _mapsService = mapsService;
     _pavlovServerPlayerService = pavlovServerPlayerService;
     _pavlovServerInfoService   = pavlovServerInfoService;
     _serverSelectedModsService = serverSelectedModsService;
 }
 public SshServerSerivce(ILiteDbIdentityAsyncContext liteDbContext,
                         PavlovServerService pavlovServerServiceService,
                         IToastifyService notyfService)
 {
     _notifyService       = notyfService;
     _liteDb              = liteDbContext;
     _pavlovServerService = pavlovServerServiceService;
 }
 public PublicViewListsService(
     PavlovServerInfoService pavlovServerInfoService,
     PavlovServerPlayerService pavlovServerPlayerService,
     PavlovServerService pavlovServerService,
     ServerSelectedMapService serverSelectedMapService,
     IToastifyService notyfService)
 {
     _notifyService             = notyfService;
     _pavlovServerInfoService   = pavlovServerInfoService;
     _pavlovServerPlayerService = pavlovServerPlayerService;
     _pavlovServerService       = pavlovServerService;
     _serverSelectedMapService  = serverSelectedMapService;
 }
示例#4
0
 public SteamService(SshServerSerivce sshServerSerivce,
                     MapsService mapsService,
                     PavlovServerService pavlovServerService,
                     ServerSelectedMapService serverSelectedMapService,
                     IToastifyService notyfService,
                     SteamIdentityStatsServerService steamIdentityStatsServerService)
 {
     _notifyService                   = notyfService;
     _mapsService                     = mapsService;
     _sshServerSerivce                = sshServerSerivce;
     _pavlovServerService             = pavlovServerService;
     _serverSelectedMapService        = serverSelectedMapService;
     _steamIdentityStatsServerService = steamIdentityStatsServerService;
 }
 public ReservedServersService(ILiteDbIdentityAsyncContext liteDbContext,
                               UserManager <LiteDbUser> userManager,
                               UserService userService,
                               PavlovServerService pavlovServerService,
                               SshServerSerivce sshServerService,
                               IToastifyService notyfService)
 {
     _userManager         = userManager;
     _userService         = userService;
     _pavlovServerService = pavlovServerService;
     _sshServerService    = sshServerService;
     _notifyService       = notyfService;
     _liteDb = liteDbContext;
 }
示例#6
0
 public RconService(SteamIdentityService steamIdentityService,
                    MapsService mapsService, PavlovServerInfoService pavlovServerInfoService,
                    PavlovServerPlayerService pavlovServerPlayerService,
                    SshServerSerivce sshServerSerivce,
                    PavlovServerService pavlovServerService,
                    PavlovServerPlayerHistoryService pavlovServerPlayerHistoryService,
                    ServerBansService serverBansService,
                    ServerSelectedMapService serverSelectedMapService,
                    SteamIdentityStatsServerService steamIdentityStatsServerService,
                    IToastifyService notyfService)
 {
     _notifyService                    = notyfService;
     _mapsService                      = mapsService;
     _pavlovServerInfoService          = pavlovServerInfoService;
     _pavlovServerService              = pavlovServerService;
     _pavlovServerPlayerService        = pavlovServerPlayerService;
     _pavlovServerPlayerHistoryService = pavlovServerPlayerHistoryService;
     _steamIdentityService             = steamIdentityService;
     _sshServerSerivce                 = sshServerSerivce;
     _serverBansService                = serverBansService;
     _serverSelectedMapService         = serverSelectedMapService;
     _steamIdentityStatsServerService  = steamIdentityStatsServerService;
 }
示例#7
0
 public void UserInRole(LiteDbUser user, ServerSelectedModsService serverSelectedModsService,
                        PavlovServerService pavlovServerService, out bool isAdmin, out bool isCaptain, out bool isMod,
                        out bool isOnPremise, out bool isServerRent, out bool isModSomeWhere, out bool Premium)
 {
     isAdmin        = false;
     isCaptain      = false;
     isMod          = false;
     isOnPremise    = false;
     isServerRent   = false;
     isModSomeWhere = false;
     Premium        = false;
     if (user == null)
     {
         return;
     }
     isAdmin        = _userManager.IsInRoleAsync(user, "Admin").GetAwaiter().GetResult();
     isCaptain      = _userManager.IsInRoleAsync(user, "Captain").GetAwaiter().GetResult();
     isMod          = _userManager.IsInRoleAsync(user, "Mod").GetAwaiter().GetResult();
     isOnPremise    = _userManager.IsInRoleAsync(user, "OnPremise").GetAwaiter().GetResult();
     isServerRent   = _userManager.IsInRoleAsync(user, "ServerRent").GetAwaiter().GetResult();
     Premium        = _userManager.IsInRoleAsync(user, "Premium").GetAwaiter().GetResult();
     isModSomeWhere = pavlovServerService.IsModSomeWhere(user, serverSelectedModsService).GetAwaiter()
                      .GetResult();
 }