Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public DebugController(ApplicationPartManager partManager, ISmtpManager smtp, IModuleCollection mgr, IAdminManager admin)
 {
     _partManager = partManager;
     _modules     = mgr;
     _admin       = admin;
     _smtpManager = smtp;
 }
Exemplo n.º 3
0
 public TelegramMessageHandler(TelegramApi telegramApi, Birthdays birthdays, IAdminManager adminManager)
 {
     _storedIds    = JsonHelper.DeserializeFile("messages.json", new LimitedStore <int>(25));
     _telegramApi  = telegramApi;
     _birthdays    = birthdays;
     _adminManager = adminManager;
 }
Exemplo n.º 4
0
 public AdminController(IAdminManager adminManager, IWorkerManager workerManager,
                        IMapperFactory mapperFactory)
 {
     _adminManager  = adminManager;
     _workerManager = workerManager;
     _mapperFactory = mapperFactory;
 }
Exemplo n.º 5
0
        public AdminConsole(IAdminManager adminManagerClient, Guid currentGuid)
        {
            _adminManagerClient = adminManagerClient;
            SessionGuid         = currentGuid;

            InitMenu();
        }
Exemplo n.º 6
0
 public WCFHost(IBanManager banManager, IClientManager clientManager, IAdminManager adminManager, IGameManager gameManager)
 {
     BanManager = banManager;
     ClientManager = clientManager;
     AdminManager = adminManager;
     GameManager = gameManager;
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 11
0
 public AdminController(
     IGameData gameData,
     ISessionInfoProvider sessionInfoProvider,
     IAdminManager adminManager,
     IAuthManager authManager)
 {
     this.gameData            = gameData;
     this.sessionInfoProvider = sessionInfoProvider;
     this.adminManager        = adminManager;
     this.authManager         = authManager;
 }
Exemplo n.º 12
0
 public AdminPermissionsController(
     RoleManager <IdentityRole> roleManager,
     UserManager <ApplicationUser> userManager,
     IAdminManager adminManager,
     IMapper mapper)
 {
     _roleManager  = roleManager;
     _userManager  = userManager;
     _adminManager = adminManager;
     _mapper       = mapper;
 }
Exemplo n.º 13
0
 public ClusterController(IRouteManager routeManager,
                          ILogProvider logManager,
                          IRouteGroupManager routeGroupManager,
                          IAdminManager adminManager,
                          IResponseProvider responseProvider)
 {
     _routemanager      = routeManager;
     _logmanager        = logManager;
     _adminmanager      = adminManager;
     _routeGroupManager = routeGroupManager;
     _responseProvider  = responseProvider;
 }
Exemplo n.º 14
0
        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();
        }
Exemplo n.º 15
0
        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();
        }
Exemplo n.º 16
0
        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);
        }
Exemplo n.º 17
0
        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();
        }
Exemplo n.º 18
0
 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;
 }
Exemplo n.º 20
0
 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);
 }
Exemplo n.º 21
0
 public AdminController(IAdminManager adminManager, UserManager <User> userManager)
 {
     _adminManager = adminManager;
     _userManager  = userManager;
 }
Exemplo n.º 22
0
 public AdminController()
 {
     _adminManager = new AdminManager();
 }
Exemplo n.º 23
0
 public ApiKeyController(IUser usr, IAdminManager mgr)
 {
     _manager = mgr.ApiKeyManager;
     _user    = usr;
 }
Exemplo n.º 24
0
 public Commands(IAdminManager adminManager)
 {
     _adminManager = adminManager;
 }
Exemplo n.º 25
0
		public AccountController( IAdminManager adminManager ) {
			_adminManager = adminManager;
		}
Exemplo n.º 26
0
 public AdminApiController(IAdminManager manager)
 {
     Manager = manager;
 }
Exemplo n.º 27
0
 public void SetAdminClient(IAdminManager adminManagerClient)
 {
     _adminManagerClient = adminManagerClient;
 }
Exemplo n.º 28
0
 public TreeSorter(IPersister persister, IAdminManager editManager, IWebContext webContext)
 {
     this.persister = persister;
     this.editManager = editManager;
     this.webContext = webContext;
 }
 public frmEditPassword(IAdminManager adminManager)
 {
     _adminManager = adminManager;
     InitializeComponent();
 }
Exemplo n.º 30
0
 public AdminController(IAdminManager adminManager, IUserManager userManager, IUserRepository userRepository)
 {
     _AdminManager = adminManager;
     _UserManager = userManager;
     _UserRepository = userRepository;
 }
Exemplo n.º 31
0
 public ManageController(IAdminManager adminManager)
 {
     _adminManager = adminManager;
 }
Exemplo n.º 32
0
 public AdminController(IAdminManager adminManager, IReportManager reportManager) : base(adminAccessOnly: true)
 {
     _adminManager  = adminManager;
     _reportManager = reportManager;
 }
Exemplo n.º 33
0
 public ServiceAdmin(IAdminManager adminManager)
 {
     _adminManager = adminManager;
 }
 public AdminController(IAdminManager adminManager, ILogger <AdminController> logger)
     : base(logger)
 {
     this._adminManager = adminManager;
 }
Exemplo n.º 35
0
 public AdminController( IAdminManager adminManager )
 {
     _adminManager = adminManager;
 }
Exemplo n.º 36
0
 public HomeController( IAdminManager adminManager )
 {
     _adminManager = adminManager;
 }
 public AdminApiController(IAdminManager manager)
 {
     Manager = manager;
 }