public AuthManager(IAdminManager admin, IUserManager umgr, ISmtpManager smgr, Config cfg) { Config = cfg; DefaultGroup = admin.GroupManager.Get(cfg.DefaultGroupName); AdminGroup = admin.GroupManager.Get(cfg.AdminGroupName); _providers["internal"] = new AuthProviderInternal(umgr, smgr, this); }
public DebugController(ApplicationPartManager partManager, ISmtpManager smtp, IModuleCollection mgr, IAdminManager admin) { _partManager = partManager; _modules = mgr; _admin = admin; _smtpManager = smtp; }
public TelegramMessageHandler(TelegramApi telegramApi, Birthdays birthdays, IAdminManager adminManager) { _storedIds = JsonHelper.DeserializeFile("messages.json", new LimitedStore <int>(25)); _telegramApi = telegramApi; _birthdays = birthdays; _adminManager = adminManager; }
public AdminController(IAdminManager adminManager, IWorkerManager workerManager, IMapperFactory mapperFactory) { _adminManager = adminManager; _workerManager = workerManager; _mapperFactory = mapperFactory; }
public AdminConsole(IAdminManager adminManagerClient, Guid currentGuid) { _adminManagerClient = adminManagerClient; SessionGuid = currentGuid; InitMenu(); }
public WCFHost(IBanManager banManager, IClientManager clientManager, IAdminManager adminManager, IGameManager gameManager) { BanManager = banManager; ClientManager = clientManager; AdminManager = adminManager; GameManager = gameManager; }
public AccountController(ICompanyManager companyManager, IAdminManager adminManager, IGenericEmailManager genericEmailManager, ISubscriptionManager subscriptionManager, ITermsAndConditionsManager termsAndConditionsManager) { _companyManager = companyManager; _adminManager = adminManager; _genericEmailManager = genericEmailManager; _subscriptionManager = subscriptionManager; _termsAndConditionsManager = termsAndConditionsManager; }
public AdminController(IAdminManager manager, IConfiguration configuration, ILogger <AdminController> logger) { _manager = manager; _configuration = configuration; _logger = logger; }
public IdentityUnitOfWork(string connectionString) { db = new ApplicationContext(connectionString); userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); clientManager = new ClientManager(db); carrierManager = new CarrierManager(db); adminManager = new AdminManager(db); }
public AdminService(ISystemLookupItemService systemLookupItemService, ICosmosDbManager cosmosDbManager, IAdminManager adminManager, IAdminLookupItemsManager adminLookupItemsManager, IAdminUsersManager customerUserAdminsManager, IHashingService hashingService, IConfiguration configuration, IWebHostEnvironment webHostEnvironment) : base(configuration, webHostEnvironment) { _systemLookupItemService = systemLookupItemService; _cosmosDbManager = cosmosDbManager; _adminManager = adminManager; _adminLookupItemsManager = adminLookupItemsManager; _customerAdminUsersManager = customerUserAdminsManager; _hashingService = hashingService; _configuration = configuration; _webHostEnvironment = webHostEnvironment; }
public AdminController( IGameData gameData, ISessionInfoProvider sessionInfoProvider, IAdminManager adminManager, IAuthManager authManager) { this.gameData = gameData; this.sessionInfoProvider = sessionInfoProvider; this.adminManager = adminManager; this.authManager = authManager; }
public AdminPermissionsController( RoleManager <IdentityRole> roleManager, UserManager <ApplicationUser> userManager, IAdminManager adminManager, IMapper mapper) { _roleManager = roleManager; _userManager = userManager; _adminManager = adminManager; _mapper = mapper; }
public ClusterController(IRouteManager routeManager, ILogProvider logManager, IRouteGroupManager routeGroupManager, IAdminManager adminManager, IResponseProvider responseProvider) { _routemanager = routeManager; _logmanager = logManager; _adminmanager = adminManager; _routeGroupManager = routeGroupManager; _responseProvider = responseProvider; }
public static void Main(string[] args) { // SimpleInjector container. _container = new Container(); // Register dependencies. SimpleInjectorInitializer.InitializeContainer(_container, Lifestyle.Singleton); _adminManager = _container.GetInstance <IAdminManager>(); _genericEmailManager = _container.GetInstance <IGenericEmailManager>(); // Send confirmation email reminders. SendFeedbackEmail(); }
public static void Main(string[] args) { // SimpleInjector container. _container = new Container(); // Register dependencies. SimpleInjectorInitializer.InitializeContainer(_container, Lifestyle.Singleton); _adminManager = _container.GetInstance <IAdminManager>(); _companyManager = _container.GetInstance <ICompanyManager>(); // Update company stats for modified companies. UpdateCompanyStats(); }
public async Task Invoke(HttpContext context, IAdminManager adminManager) { // check if an admin user exists var response = await adminManager.CheckForAdminUser(); if (!response.AdminUserExists && context.Request.Path != "/Admin/CreateAdminUser") { context.Response.Redirect("/Admin/CreateAdminUser"); } // Call the next delegate/middleware in the pipeline await _next(context); }
public static void Main(string[] args) { // SimpleInjector container. _container = new Container(); // Register dependencies. SimpleInjectorInitializer.InitializeContainer(_container, Lifestyle.Singleton); _userStore = new AppUserStore <AppUser>(new IdentityDatabaseContext <AppUser, IdentityRole>()); _userManager = new UserManager <AppUser, int>(_userStore); _adminManager = _container.GetInstance <IAdminManager>(); _userManager.EmailService = new EmailService(); // Send confirmation email reminders. SendConfirmationEmailReminders().Wait(); }
public AdminController( ILogger <AdminController> logger, IGameWebSocketConnectionProvider socketProvider, IGameData gameData, ISessionInfoProvider sessionInfoProvider, IPlayerManager playerManager, IAdminManager adminManager, IAuthManager authManager) { this.logger = logger; this.socketProvider = socketProvider; this.gameData = gameData; this.sessionInfoProvider = sessionInfoProvider; this.playerManager = playerManager; this.adminManager = adminManager; this.authManager = authManager; }
public AdminService( IAccountService accountService, ISessionManager sessionManager, ISessionProvider sessionProvider, IUnitOfWorkFactory uowFactory, ICacheProvider cacheProvider, IAdminManager adminManager, IAuthenticationManager authenticationManager) { _uowFactory = uowFactory; _cacheProvider = cacheProvider; _accountService = accountService; _sessionManager = sessionManager; _sessionProvider = sessionProvider; _adminManager = adminManager; _authenticationManager = authenticationManager; }
private static void LoadConfig() { Config = JsonHelper.DeserializeFile(ConfigFile, new BirthdayConfig { MessageLoopSleepTimeMs = 5000, MessageTemplate = "Happy birthday, {user}!", Token = "Enter your token here", ChatId = "Enter your chat id here", TimeZoneId = "Central European Standard Time", LastResetDateLocalTime = DateTime.MinValue, Admins = new List <string>() }); _timeZoneId = Config.TimeZoneId; _tz = TimeZoneInfo.FindSystemTimeZoneById(Config.TimeZoneId); _lastResetDateLocalTime = Config.LastResetDateLocalTime; _adminManager = new AdminManager(Config.Admins); _commands = new Commands(_adminManager); }
public AdminController(IAdminManager adminManager, UserManager <User> userManager) { _adminManager = adminManager; _userManager = userManager; }
public AdminController() { _adminManager = new AdminManager(); }
public ApiKeyController(IUser usr, IAdminManager mgr) { _manager = mgr.ApiKeyManager; _user = usr; }
public Commands(IAdminManager adminManager) { _adminManager = adminManager; }
public AccountController( IAdminManager adminManager ) { _adminManager = adminManager; }
public AdminApiController(IAdminManager manager) { Manager = manager; }
public void SetAdminClient(IAdminManager adminManagerClient) { _adminManagerClient = adminManagerClient; }
public TreeSorter(IPersister persister, IAdminManager editManager, IWebContext webContext) { this.persister = persister; this.editManager = editManager; this.webContext = webContext; }
public frmEditPassword(IAdminManager adminManager) { _adminManager = adminManager; InitializeComponent(); }
public AdminController(IAdminManager adminManager, IUserManager userManager, IUserRepository userRepository) { _AdminManager = adminManager; _UserManager = userManager; _UserRepository = userRepository; }
public ManageController(IAdminManager adminManager) { _adminManager = adminManager; }
public AdminController(IAdminManager adminManager, IReportManager reportManager) : base(adminAccessOnly: true) { _adminManager = adminManager; _reportManager = reportManager; }
public ServiceAdmin(IAdminManager adminManager) { _adminManager = adminManager; }
public AdminController(IAdminManager adminManager, ILogger <AdminController> logger) : base(logger) { this._adminManager = adminManager; }
public AdminController( IAdminManager adminManager ) { _adminManager = adminManager; }
public HomeController( IAdminManager adminManager ) { _adminManager = adminManager; }