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 PavlovServerController(SshServerSerivce service,
                               UserService userService,
                               PavlovServerService pavlovServerService,
                               ServerBansService serverBansService,
                               ServerSelectedMapService serverSelectedMapService,
                               MapsService mapsService,
                               SshServerSerivce sshServerSerivce,
                               ServerSelectedWhitelistService whitelistService,
                               SteamIdentityStatsServerService steamIdentityStatsServerService,
                               ServerSelectedModsService serverSelectedModsService,
                               SteamIdentityService steamIdentityService,
                               UserManager <LiteDbUser> userManager,
                               IToastifyService notyfService)
 {
     _notifyService                   = notyfService;
     _service                         = service;
     _userservice                     = userService;
     _pavlovServerService             = pavlovServerService;
     _serverSelectedMapService        = serverSelectedMapService;
     _serverBansService               = serverBansService;
     _steamIdentityStatsServerService = steamIdentityStatsServerService;
     _mapsService                     = mapsService;
     _whitelistService                = whitelistService;
     _steamIdentityService            = steamIdentityService;
     _sshServerSerivce                = sshServerSerivce;
     _serverSelectedModsService       = serverSelectedModsService;
     UserManager                      = userManager;
 }
 public SshServerSerivce(ILiteDbIdentityAsyncContext liteDbContext,
                         PavlovServerService pavlovServerServiceService,
                         IToastifyService notyfService)
 {
     _notifyService       = notyfService;
     _liteDb              = liteDbContext;
     _pavlovServerService = pavlovServerServiceService;
 }
Beispiel #4
0
 public ServerSelectedModsService(ILiteDbIdentityAsyncContext liteDbContext,
                                  SteamIdentityService steamIdentityService, UserService userService,
                                  IToastifyService notyfService)
 {
     _notifyService        = notyfService;
     _liteDb               = liteDbContext;
     _steamIdentityService = steamIdentityService;
     _userService          = userService;
 }
Beispiel #5
0
 public UserService(ILiteDbIdentityAsyncContext liteDbContext, UserManager <LiteDbUser> userMrg,
                    RoleManager <LiteDbRole> roleMgr,
                    IToastifyService notyfService)
 {
     _notifyService = notyfService;
     _userManager   = userMrg;
     _roleManager   = roleMgr;
     _liteDb        = liteDbContext;
 }
 public PavlovServerService(ILiteDbIdentityAsyncContext liteDbContext,
                            ServerSelectedModsService serverSelectedModsService,
                            ServerSelectedWhitelistService serverSelectedWhitelistService,
                            ServerSelectedMapService serverSelectedMapService,
                            IToastifyService notyfService)
 {
     _notifyService                  = notyfService;
     _liteDb                         = liteDbContext;
     _serverSelectedMapService       = serverSelectedMapService;
     _serverSelectedModsService      = serverSelectedModsService;
     _serverSelectedWhitelistService = serverSelectedWhitelistService;
 }
 public PublicViewListsService(
     PavlovServerInfoService pavlovServerInfoService,
     PavlovServerPlayerService pavlovServerPlayerService,
     PavlovServerService pavlovServerService,
     ServerSelectedMapService serverSelectedMapService,
     IToastifyService notyfService)
 {
     _notifyService             = notyfService;
     _pavlovServerInfoService   = pavlovServerInfoService;
     _pavlovServerPlayerService = pavlovServerPlayerService;
     _pavlovServerService       = pavlovServerService;
     _serverSelectedMapService  = serverSelectedMapService;
 }
Beispiel #8
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;
 }
Beispiel #10
0
 public ApiWithKeyController(PavlovServerService pavlovServerService,
                             SshServerSerivce sshServerSerivce,
                             ReservedServersService reservedServersService,
                             UserService userService,
                             UserManager <LiteDbUser> userManager,
                             IToastifyService notyfService,
                             IConfiguration configuration)
 {
     _notifyService          = notyfService;
     _pavlovServerService    = pavlovServerService;
     _sshServerSerivce       = sshServerSerivce;
     _userService            = userService;
     _reservedServersService = reservedServersService;
     _configuration          = configuration;
     _userManager            = userManager;
     ApiKey = configuration.GetSection("ApiKey").Value;
     GeneratedServerPath = configuration.GetSection("GeneratedServerPath").Value;
 }
Beispiel #11
0
 public RconController(RconService service,
                       UserService userService,
                       ServerSelectedMapService serverSelectedMapService,
                       MapsService mapsService,
                       PavlovServerService pavlovServerService,
                       ServerBansService serverBansService,
                       ServerSelectedModsService serverSelectedModsService,
                       PavlovServerPlayerService pavlovServerPlayerService,
                       IToastifyService itToastifyService)
 {
     _toastifyService           = itToastifyService;
     _service                   = service;
     _userservice               = userService;
     _serverSelectedMapService  = serverSelectedMapService;
     _mapsService               = mapsService;
     _pavlovServerService       = pavlovServerService;
     _serverBansService         = serverBansService;
     _pavlovServerPlayerService = pavlovServerPlayerService;
     _serverSelectedModsService = serverSelectedModsService;
 }
Beispiel #12
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;
 }
Beispiel #13
0
        public static void LogToDatabaseAndResultPlusNotify(string error, LogEventLevel logLevel,
                                                            IToastifyService notyfService, ConnectionResult result = null)
        {
            result?.errors.Add(error);
            switch (logLevel)
            {
            case LogEventLevel.Verbose:
                Log.Verbose(error + " | Version={ProgramVersion} |", ProgramVersion);
                break;

            case LogEventLevel.Debug:
                Log.Debug(error + " | Version={ProgramVersion} |", ProgramVersion);
                break;

            case LogEventLevel.Information:
                Log.Information(error + " | Version={ProgramVersion} |", ProgramVersion);
                break;

            case LogEventLevel.Warning:
                Log.Warning(error + " | Version={ProgramVersion} |", ProgramVersion);
                notyfService.Warning(error, 10);
                break;

            case LogEventLevel.Error:
                Log.Error(error + " | Version={ProgramVersion} |", ProgramVersion);
                notyfService.Error(error, 60);
                break;

            case LogEventLevel.Fatal:
                Log.Fatal(error + " | Version={ProgramVersion} |", ProgramVersion);
                notyfService.Error(error, 60);
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(logLevel), logLevel, null);
            }
        }
 public MapsService(ILiteDbIdentityAsyncContext liteDbContext,
                    IToastifyService notyfService)
 {
     _notifyService = notyfService;
     _liteDb        = liteDbContext;
 }
Beispiel #15
0
 public PavlovServerPlayerService(ILiteDbIdentityAsyncContext liteDbContext,
                                  IToastifyService notyfService)
 {
     _notifyService = notyfService;
     _liteDb        = liteDbContext;
 }
Beispiel #16
0
 public ServerSelectedMapService(ILiteDbIdentityAsyncContext liteDbContext,
                                 IToastifyService notyfService)
 {
     _notifyService = notyfService;
     _liteDb        = liteDbContext;
 }
Beispiel #17
0
 public IndexModel(ILogger <IndexModel> logger, IToastifyService toastify)
 {
     _logger       = logger;
     this.toastify = toastify;
 }
Beispiel #18
0
 public ToastifyViewComponent(IToastifyService service, ToastifyEntity options)
 {
     this._service = service;
     _options      = options;
 }
Beispiel #19
0
 public MatchSelectedSteamIdentitiesService(ILiteDbIdentityAsyncContext liteDbContext,
                                            IToastifyService notyfService)
 {
     _notifyService = notyfService;
     _liteDb        = liteDbContext;
 }
Beispiel #20
0
 public SteamIdentityStatsServerService(ILiteDbIdentityAsyncContext liteDbContext,
                                        IToastifyService notyfService)
 {
     _notifyService = notyfService;
     _liteDb        = liteDbContext;
 }