コード例 #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);
 }
コード例 #2
0
 public DebugController(ApplicationPartManager partManager, ISmtpManager smtp, IModuleCollection mgr, IAdminManager admin)
 {
     _partManager = partManager;
     _modules     = mgr;
     _admin       = admin;
     _smtpManager = smtp;
 }
コード例 #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;
 }
コード例 #4
0
 public AdminController(IAdminManager adminManager, IWorkerManager workerManager,
                        IMapperFactory mapperFactory)
 {
     _adminManager  = adminManager;
     _workerManager = workerManager;
     _mapperFactory = mapperFactory;
 }
コード例 #5
0
        public AdminConsole(IAdminManager adminManagerClient, Guid currentGuid)
        {
            _adminManagerClient = adminManagerClient;
            SessionGuid         = currentGuid;

            InitMenu();
        }
コード例 #6
0
ファイル: WCFHost.cs プロジェクト: SinaC/TetriNET2
 public WCFHost(IBanManager banManager, IClientManager clientManager, IAdminManager adminManager, IGameManager gameManager)
 {
     BanManager = banManager;
     ClientManager = clientManager;
     AdminManager = adminManager;
     GameManager = gameManager;
 }
コード例 #7
0
 public AccountController(ICompanyManager companyManager, IAdminManager adminManager, IGenericEmailManager genericEmailManager, ISubscriptionManager subscriptionManager, ITermsAndConditionsManager termsAndConditionsManager)
 {
     _companyManager            = companyManager;
     _adminManager              = adminManager;
     _genericEmailManager       = genericEmailManager;
     _subscriptionManager       = subscriptionManager;
     _termsAndConditionsManager = termsAndConditionsManager;
 }
コード例 #8
0
        public AdminController(IAdminManager manager, IConfiguration configuration, ILogger <AdminController> logger)
        {
            _manager = manager;

            _configuration = configuration;

            _logger = logger;
        }
コード例 #9
0
 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);
 }
コード例 #10
0
 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;
 }
コード例 #11
0
 public AdminController(
     IGameData gameData,
     ISessionInfoProvider sessionInfoProvider,
     IAdminManager adminManager,
     IAuthManager authManager)
 {
     this.gameData            = gameData;
     this.sessionInfoProvider = sessionInfoProvider;
     this.adminManager        = adminManager;
     this.authManager         = authManager;
 }
コード例 #12
0
 public AdminPermissionsController(
     RoleManager <IdentityRole> roleManager,
     UserManager <ApplicationUser> userManager,
     IAdminManager adminManager,
     IMapper mapper)
 {
     _roleManager  = roleManager;
     _userManager  = userManager;
     _adminManager = adminManager;
     _mapper       = mapper;
 }
コード例 #13
0
 public ClusterController(IRouteManager routeManager,
                          ILogProvider logManager,
                          IRouteGroupManager routeGroupManager,
                          IAdminManager adminManager,
                          IResponseProvider responseProvider)
 {
     _routemanager      = routeManager;
     _logmanager        = logManager;
     _adminmanager      = adminManager;
     _routeGroupManager = routeGroupManager;
     _responseProvider  = responseProvider;
 }
コード例 #14
0
ファイル: Program.cs プロジェクト: manojranaweera/supdate
        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();
        }
コード例 #15
0
ファイル: Program.cs プロジェクト: manojranaweera/supdate
        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();
        }
コード例 #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);
        }
コード例 #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();
        }
コード例 #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;
 }
コード例 #19
0
 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;
 }
コード例 #20
0
ファイル: Program.cs プロジェクト: Szune/HappyBirthdayBot
 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);
 }
コード例 #21
0
 public AdminController(IAdminManager adminManager, UserManager <User> userManager)
 {
     _adminManager = adminManager;
     _userManager  = userManager;
 }
コード例 #22
0
 public AdminController()
 {
     _adminManager = new AdminManager();
 }
コード例 #23
0
ファイル: ApiKeyController.cs プロジェクト: WikiLibs/API
 public ApiKeyController(IUser usr, IAdminManager mgr)
 {
     _manager = mgr.ApiKeyManager;
     _user    = usr;
 }
コード例 #24
0
 public Commands(IAdminManager adminManager)
 {
     _adminManager = adminManager;
 }
コード例 #25
0
		public AccountController( IAdminManager adminManager ) {
			_adminManager = adminManager;
		}
コード例 #26
0
 public AdminApiController(IAdminManager manager)
 {
     Manager = manager;
 }
コード例 #27
0
 public void SetAdminClient(IAdminManager adminManagerClient)
 {
     _adminManagerClient = adminManagerClient;
 }
コード例 #28
0
ファイル: TreeSorter.cs プロジェクト: dpawatts/zeus
 public TreeSorter(IPersister persister, IAdminManager editManager, IWebContext webContext)
 {
     this.persister = persister;
     this.editManager = editManager;
     this.webContext = webContext;
 }
コード例 #29
0
 public frmEditPassword(IAdminManager adminManager)
 {
     _adminManager = adminManager;
     InitializeComponent();
 }
コード例 #30
0
ファイル: AdminController.cs プロジェクト: yeshusuper/Flh
 public AdminController(IAdminManager adminManager, IUserManager userManager, IUserRepository userRepository)
 {
     _AdminManager = adminManager;
     _UserManager = userManager;
     _UserRepository = userRepository;
 }
コード例 #31
0
ファイル: ManageController.cs プロジェクト: Iliyan7/Obaju
 public ManageController(IAdminManager adminManager)
 {
     _adminManager = adminManager;
 }
コード例 #32
0
 public AdminController(IAdminManager adminManager, IReportManager reportManager) : base(adminAccessOnly: true)
 {
     _adminManager  = adminManager;
     _reportManager = reportManager;
 }
コード例 #33
0
ファイル: ServiceAdmin.svc.cs プロジェクト: walik92/BSR_Bank
 public ServiceAdmin(IAdminManager adminManager)
 {
     _adminManager = adminManager;
 }
コード例 #34
0
 public AdminController(IAdminManager adminManager, ILogger <AdminController> logger)
     : base(logger)
 {
     this._adminManager = adminManager;
 }
コード例 #35
0
 public AdminController( IAdminManager adminManager )
 {
     _adminManager = adminManager;
 }
コード例 #36
0
 public HomeController( IAdminManager adminManager )
 {
     _adminManager = adminManager;
 }
コード例 #37
0
 public AdminApiController(IAdminManager manager)
 {
     Manager = manager;
 }