Beispiel #1
0
        //private readonly IActivitySvc activitySvc;
        //private readonly ApplicationDbContext db;
        //private readonly IHostingEnvironment env;
        //private readonly UserManager<ApplicationUser> userManager;

        public ProfileController(IServiceProvider provider, IOptions <AppSettings> appSettings,
                                 IOptions <DataProtectionKeys> dataProtectionKeys, ICookieSvc cookieSvc, IUserSvc userSvc)
        {
            _provider           = provider;
            _appSettings        = appSettings.Value;
            _dataProtectionKeys = dataProtectionKeys.Value;
            _cookieSvc          = cookieSvc;
            //_userSvc = new UserSvc(provider, activitySvc, cookieSvc, db, dataProtectionKeys, ev,userManager);
            _userSvc = userSvc;
        }
 public UserController(IUserSvc userSvc, ICookieSvc cookieSvc, IServiceProvider provider,
                       IOptions <DataProtectionKeys> dataProtectionKeys, IOptions <AppSettings> appSettings, IWritebleSettingSvc <SiteWideSettings> writableSiteWideSettings)
 {
     _userSvc            = userSvc;
     _cookieSvc          = cookieSvc;
     _provider           = provider;
     _dataProtectionKeys = dataProtectionKeys.Value;
     _appSettings        = appSettings.Value;
     _writebleSettingSvc = writableSiteWideSettings;
 }
Beispiel #3
0
 public AccountController(IOptions <AppSettings> appSettings, ApplicationDbContext db,
                          IAuthenticateSvc authenticateSvc, ICookieSvc cookieSvc, IServiceProvider provider, IOptions <DataProtectionKeys> dataProtectionKey)
 {
     _appSettings        = appSettings.Value;
     _db                 = db;
     _provider           = provider;
     _authenticateSvc    = authenticateSvc;
     _dataProtectionKeys = dataProtectionKey.Value;
     _cookieSvc          = cookieSvc;
 }
 public AuthenticateSvc(ApplicationDbContext db, UserManager <ApplicationUser> userManager,
                        IOptions <AppSettings> appsettingOptions, IOptions <DataProtectionKeys> dataprotectionKeyOption,
                        ICookieSvc cookieSvc, IActivitySvc activitySvc, IServiceProvider provider)
 {
     _userManager        = userManager;
     _dbContext          = db;
     _appSettings        = appsettingOptions.Value;
     _dataProtectionKeys = dataprotectionKeyOption.Value;
     _cookieSvc          = cookieSvc;
     _activitySvc        = activitySvc;
     _provider           = provider;
 }
Beispiel #5
0
 public HomeController(IServiceProvider provider, IOptions <AppSettings> appSettings,
                       IOptions <DataProtectionKeys> dataProtectionKeys, ICookieSvc cookieSvc, IUserSvc userSvc,
                       ApplicationDbContext db)
 {
     _provider           = provider;
     _appSettings        = appSettings.Value;
     _dataProtectionKeys = dataProtectionKeys.Value;
     _cookieSvc          = cookieSvc;
     _userSvc            = userSvc;
     _db        = db;
     _dashBoard = new DashBoardModel();
 }
Beispiel #6
0
 public AuthSvc(UserManager <ApplicationUser> userManager,
                IOptions <AppSettings> appSettings,
                ApplicationDbContext db,
                ICookieSvc cookieSvc, IServiceProvider provider, IOptions <DataProtectionKeys> dataProtectionKeys)
 {
     _userManager        = userManager;
     _appSettings        = appSettings.Value;
     _db                 = db;
     _cookieSvc          = cookieSvc;
     _provider           = provider;
     _dataProtectionKeys = dataProtectionKeys.Value;
 }
Beispiel #7
0
 public AdminSvc(UserManager <ApplicationUser> userManager,
                 IHttpContextAccessor httpContextAccessor,
                 IWebHostEnvironment env,
                 ApplicationDbContext db,
                 ICookieSvc cookieSvc, IActivitySvc activitySvc, IServiceProvider provider, IOptions <DataProtectionKeys> dataProtectionKeys, RoleManager <IdentityRole> roleManager)
 {
     _userManager        = userManager;
     _env                = env;
     _db                 = db;
     _cookieSvc          = cookieSvc;
     _activitySvc        = activitySvc;
     _dataProtectionKeys = dataProtectionKeys.Value;
     _provider           = provider;
     _roleManager        = roleManager;
 }
 public UserSvc(
     IServiceProvider provider,
     IActivitySvc activitySvc,
     ICookieSvc cookieSvc,
     ApplicationDbContext db,
     IOptions <DataProtectionKeys> dataProtectionKeys,
     IWebHostEnvironment env,
     UserManager <ApplicationUser> userManager)
 {
     _userManager        = userManager;
     _provider           = provider;
     _cookieSvc          = cookieSvc;
     _activitySvc        = activitySvc;
     _env                = env;
     _db                 = db;
     _dataProtectionKeys = dataProtectionKeys.Value;
 }
Beispiel #9
0
 public UserSvc(
     UserManager <ApplicationUser> userManager,
     IHostingEnvironment env,
     ApplicationDbContext db,
     ICookieSvc cookieSvc,
     IActivitySvc activitySvc,
     IServiceProvider provider,
     IOptions <DataProtectionKeys> dataProtectionKeys,
     IHttpContextAccessor httpContextAccessor)
 {
     _userManager         = userManager;
     _env                 = env;
     _db                  = db;
     _cookieSvc           = cookieSvc;
     _activitySvc         = activitySvc;
     _dataProtectionKeys  = dataProtectionKeys.Value;
     _provider            = provider;
     _httpContextAccessor = httpContextAccessor;
 }
 public ProfileController(IUserSvc userSvc, ICookieSvc cookieSvc)
 {
     _userSvc   = userSvc;
     _cookieSvc = cookieSvc;
 }