/// <summary> /// The main method of the program. /// </summary> public static void Main() { var databaseSettings = new DatabaseConnectionSettings { Host = "localhost", Database = "mqtt", Port = 5432, Username = "******", Password = "******" }; userRepository = new UserRepository(databaseSettings); databaseVersionRepository = new DatabaseVersionRepository(databaseSettings); whitelistRepository = new WhitelistRepository(databaseSettings); blacklistRepository = new BlacklistRepository(databaseSettings); databaseHelper = new DatabaseHelper(databaseSettings); Console.WriteLine("Delete database..."); databaseHelper.DeleteDatabase(databaseSettings.Database); Console.WriteLine("Create database..."); databaseHelper.CreateDatabase(databaseSettings.Database); Console.WriteLine("Setting up the database tables..."); databaseHelper.CreateAllTables(true); Console.WriteLine("Adding seed data..."); SeedData(); Console.WriteLine("Press any key to close this window..."); Console.ReadKey(); }
public BlacklistService( IBlacklistRepository blacklistRepository, ILogWrapper logger) { BlacklistRepository = blacklistRepository; Logger = logger; }
public AccountService(ILogger <AccountService> logger, ISummonerMapper summonerMapper, IAlternateAccountMapper alternateAccountMapper, ISummonerInfoRepository summonerInfoRepository, IAlternateAccountRepository alternateAccountRepository, IRequestedSummonerRepository requestedSummonerRepository, ITeamPlayerRepository teamPlayerRepository, ITeamRosterRepository teamRosterRepository, ISeasonInfoRepository seasonInfoRepository, IBlacklistRepository blacklistRepository) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _summonerMapper = summonerMapper ?? throw new ArgumentNullException(nameof(summonerMapper)); _alternateAccountMapper = alternateAccountMapper ?? throw new ArgumentNullException(nameof(alternateAccountMapper)); _summonerInfoRepository = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository)); _alternateAccountRepository = alternateAccountRepository ?? throw new ArgumentNullException(nameof(alternateAccountRepository)); _requestedSummonerRepository = requestedSummonerRepository ?? throw new ArgumentNullException(nameof(requestedSummonerRepository)); _teamPlayerRepository = teamPlayerRepository ?? throw new ArgumentNullException(nameof(teamPlayerRepository)); _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository)); _seasonInfoRepository = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository)); _blacklistRepository = blacklistRepository ?? throw new ArgumentNullException(nameof(blacklistRepository)); }
public ProjectManagementAppService(IProjectManagementRepository projectManagementRepository, IAuditManagementRepository auditManagementRepository, IBidOpeningManagementRepository bidOpeningManagementRepository, IBlacklistRepository blacklistRepository, IBiddingManagementRepository biddingManagementRepository, IActualOutlayRepository actualOutlayRepository, IPerformanceAmountDetailRepository performanceAmountDetailRepository, IRelationshipRepository relationshipRepository, ISysDictionaryRepository sysDictionaryRepository, IProcessManagementRepository processManagementRepository, IEqManagerRepository eqManagerRepository, ITendererRepository tendererRepository, IProcurementPlanRepository procurementPlanRepository) { this._projectManagementRepository = projectManagementRepository; this._auditManagementRepository = auditManagementRepository; this._blacklistRepository = blacklistRepository; this._bidOpeningManagementRepository = bidOpeningManagementRepository; this._biddingManagementRepository = biddingManagementRepository; this._actualOutlayRepository = actualOutlayRepository; this._performanceAmountDetailRepository = performanceAmountDetailRepository; this._relationshipRepository = relationshipRepository; this._sysDictionaryRepository = sysDictionaryRepository; this._processManagementRepository = processManagementRepository; this._eqManagerRepository = eqManagerRepository; this._tendererRepository = tendererRepository; this._procurementPlanRepository = procurementPlanRepository; }
public EqManagerAppService(IEqManagerRepository eqManagerRepository, IProcurementPlanRepository procurementPlanRepository, IBlacklistRepository blacklistRepository, ISysDictionaryRepository sysDictionaryRepository) { this._eqManagerRepository = eqManagerRepository; this._procurementPlanRepository = procurementPlanRepository; this._blacklistRepository = blacklistRepository; this._sysDictionaryRepository = sysDictionaryRepository; }
public HomeController(UserManager <UserEntity> userManager, IAccountService accountService, IBlacklistRepository blacklistRepository, SignInManager <UserEntity> signInManager, IEmailService emailService) { _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); _accountService = accountService ?? throw new ArgumentNullException(nameof(accountService)); _signInManager = signInManager ?? throw new ArgumentNullException(nameof(signInManager)); _blacklistRepository = blacklistRepository ?? throw new ArgumentNullException(nameof(blacklistRepository)); _emailService = emailService ?? throw new ArgumentNullException(nameof(emailService)); }
public ManageController(UserManager <UserEntity> userManager, SignInManager <UserEntity> signInManager, IEmailService emailSender, ILogger logger, UrlEncoder urlEncoder, IAccountService accountService, IBlacklistRepository blacklistRepository, ISummonerInfoRepository summonerInfoRepository) { _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); _signInManager = signInManager ?? throw new ArgumentNullException(nameof(signInManager)); _emailSender = emailSender ?? throw new ArgumentNullException(nameof(emailSender)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _urlEncoder = urlEncoder ?? throw new ArgumentNullException(nameof(urlEncoder)); _accountService = accountService ?? throw new ArgumentNullException(nameof(accountService)); _blacklistRepository = blacklistRepository ?? throw new ArgumentNullException(nameof(blacklistRepository)); _summonerInfoRepository = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository)); }
public BlacklistService(IBlacklistRepository blacklistRepository) { _blacklistRepository = blacklistRepository; }
public BlacklistService(IBlacklistRepository blacklistRepository, IRedownloadFailedDownloads redownloadFailedDownloadService) { _blacklistRepository = blacklistRepository; _redownloadFailedDownloadService = redownloadFailedDownloadService; }
public BlacklistAppService(IBlacklistRepository blacklistRepository, ISysDictionaryRepository sysDictionaryRepository) { this._blacklistRepository = blacklistRepository; this._sysDictionaryRepository = sysDictionaryRepository; }
public UserService(UserManager <UserEntity> userManager, IBlacklistRepository blacklistRepository) { _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); _blacklistRepository = blacklistRepository ?? throw new ArgumentNullException(nameof(blacklistRepository)); }
public BlacklistController(IBlacklistRepository blacklistRepository) { this.blacklistRepository = blacklistRepository; }
public BlacklistService(IBlacklistRepository blacklistRep) { this.blacklistRep = blacklistRep; }