public HomeController(IEmployeeRepository employee, IHostingEnvironment hostingEnvironment, DataProtectionPurposeString datastring, IDataProtectionProvider data) { this.hostingEnvironment = hostingEnvironment; _empployeeRepository = employee; protector = data.CreateProtector(datastring.EmployeeRouteValue); }
/// <summary> /// COMMON controllers for each album /// </summary> /// <param name="Albums"></param> /// <param name="dataProtectionProvider"></param> /// <param name="dataProtectionPurpose"></param> /// <param name="PhotoRepository"></param> public CommonController(IAlbums Albums, IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeString dataProtectionPurpose, IPhoto PhotoRepository) { albums = Albums; DataProtectionProvider = dataProtectionProvider; DataProtectionPurpose = dataProtectionPurpose; photoRepository = PhotoRepository; Protector = DataProtectionProvider.CreateProtector(DataProtectionPurpose.PurposeString); }
public FavViewComponent(IPhoto PhotoRepository, Microsoft.AspNetCore.Identity.UserManager <AccountUser> userManager, IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeString dataProtectionPurpose) { photoRepository = PhotoRepository; UserManager = userManager; DataProtectionProvider = dataProtectionProvider; DataProtectionPurpose = dataProtectionPurpose; Protector = DataProtectionProvider.CreateProtector(DataProtectionPurpose.PurposeString); }
/// <summary> /// Its is Controctur Injection /// </summary> /// <param name="employeeRepository"></param> public HomeController(IEmployeeRepository employeeRepository, IHostingEnvironment hostingEnvironment, ILogger <HomeController> logger, IDataProtectionProvider dtaProtectionprotector, DataProtectionPurposeString dataProtectionPurposeString) { _employeeRepository = employeeRepository; this.hostingEnvironment = hostingEnvironment; this.logger = logger; protector = dtaProtectionprotector.CreateProtector(dataProtectionPurposeString.EmployeeIdRouteValue); }
/// <summary> /// ASSIGN needed parameters for user functionality /// </summary> /// <param name="ToastNotification">Gives good notification pop-up for success and falier msg</param> /// <param name="HttpContextAccessor"></param> /// <param name="PhotoRepository"></param> /// <param name="dataProtectionProvider"></param> /// <param name="dataProtectionPurpose"></param> /// <param name="UserManager"></param> /// <param name="albums"></param> /// <param name="HostingEnvironment"></param> /// <param name="Configuration"></param> public UserController(IToastNotification ToastNotification, IHttpContextAccessor HttpContextAccessor, IPhoto PhotoRepository, IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeString dataProtectionPurpose, UserManager <AccountUser> UserManager, IAlbums albums, IWebHostEnvironment HostingEnvironment, IConfiguration Configuration) { toastNotification = ToastNotification; httpContextAccessor = HttpContextAccessor; photoRepository = PhotoRepository; DataProtectionProvider = dataProtectionProvider; DataProtectionPurpose = dataProtectionPurpose; Protector = DataProtectionProvider.CreateProtector(DataProtectionPurpose.PurposeString); userManager = UserManager; albumRepository = albums; hostingEnvironment = HostingEnvironment; configuration = Configuration; }
public AdminController(IBarangMasukRepository barangMasukRepository, UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeString dataProtectionPurposeString, AppDbContext appDbContext, IBarangKeluarRepository barangKeluarRepository, RoleManager <IdentityRole> roleManager) { this.barangMasukRepository = barangMasukRepository; this.userManager = userManager; this.signInManager = signInManager; this.appDbContext = appDbContext; this.barangKeluarRepository = barangKeluarRepository; this.roleManager = roleManager; this.protector = dataProtectionProvider.CreateProtector(dataProtectionPurposeString.BarangRouteValue); }
public HomeController(IRecipeRepository recipeRepository, IWebHostEnvironment hostingEnvironment, IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeString dataProtectionPurposeString, SignInManager <ApplicationUser> signInManager, IRateRepository rateRepository, IObserveRepository observeRepository, IFavouriteRepository favouriteRepository, ICommentRepository commentRepository, IReportRepository reportRepository) { _recipeRepository = recipeRepository; _hostingEnvironment = hostingEnvironment; _protector = dataProtectionProvider .CreateProtector(dataProtectionPurposeString.EmployeeIdRouteValue); _signInManager = signInManager; _rateRepository = rateRepository; _observeRepository = observeRepository; _favouriteRepository = favouriteRepository; _commentRepository = commentRepository; _reportRepository = reportRepository; }
public AuthController(IAuthBL auth, IConfiguration config, ITokenService tokenService, IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeString dataProtectionPurposeString) { _auth = auth; _config = config; _tokenService = tokenService; protector = dataProtectionProvider.CreateProtector(dataProtectionPurposeString.Key); }