Ejemplo n.º 1
0
 public HomeController(IHomeServiceRepo homeServiceRepository,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     this.homeServiceRepository = homeServiceRepository;
     protector = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.HomeAssetIdRouteValue);
 }
Ejemplo n.º 2
0
 public HomeController(IEmployeeRepository employeeRepository, IWebHostEnvironment hostEnvironment,
                       IDataProtectionProvider protectionProvider, DataProtectionPurposeStrings purposeStrings)
 {
     _employeeRepository  = employeeRepository;
     this.hostEnvironment = hostEnvironment;
     dataProtector        = protectionProvider.CreateProtector(purposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 3
0
 // GET: Rooms
 public RoomsController(ILogger <RoomsController> logger,
                        IHostingEnvironment hostingEnvironment,
                        IDataProtectionProvider dataProtectionProvider,
                        DataProtectionPurposeStrings dataProtectionPurposeStrings, IRoom room)
 {
     this._room = room;
 }
Ejemplo n.º 4
0
 public HomeController(IEmployeeRepository employeeRepository,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _employeeRepository = employeeRepository;
     protector           = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 5
0
 public HomeController(IEmployeeRepository employeeRepository, IHostingEnvironment hostingEnvironment, IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _employeeRepository = employeeRepository;
     _hostingEnvironment = hostingEnvironment;
     _dataProtector      = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 6
0
 public HomeController(IEmployeeRepository employeeRepository, IWebHostEnvironment env, ILogger <HomeController> logger,
                       IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _employeeRepository = employeeRepository;
     _env       = env;
     _logger    = logger;
     _protector = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 7
0
 public HomeController(IRepository <Student, int> studentRepository, IWebHostEnvironment webHostEnvironment, IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings, IStudentService studentService)
 {
     _studentRepository  = studentRepository;
     _webHostEnvironment = webHostEnvironment;
     _protector          = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.StudentIdRouteValue);
     _studentService     = studentService;
 }
Ejemplo n.º 8
0
        public HomeController(IMMORepository context,
                              IDataProtectionProvider dataProtectionProvider,
                              DataProtectionPurposeStrings dataProtectionPurposeStrings)
        {
            _context = context;

            this.protector = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.CharacterIdRouteValue);
        }
Ejemplo n.º 9
0
 public HomeController(IJobRepository jobRepository, IWebHostEnvironment hostingEnvironment,
                       UserManager <ApplicationUser> userManager, IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _jobRepository          = jobRepository;
     this.hostingEnvironment = hostingEnvironment;
     this.userManager        = userManager;
     protector = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.JobIdRouteValue);
 }
Ejemplo n.º 10
0
 //public string Index()
 //{
 //    return "Hello World!";
 //}
 //public JsonResult Index()
 //{
 //    return Json(new { id = 1, Name = "Vaibhav" });
 //}
 public HomeController(IEmployeeRepository employeeRepository, IHostingEnvironment hostingEnvironment,
                       ILogger <HomeController> logger,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     this._employeeRepository = employeeRepository;
     this.hostingEnvironment  = hostingEnvironment;
     this.logger = logger;
     protector   = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 11
0
 public HomeController(ILogger <HomeController> logger, IMovieRepository movieRepository, IHostingEnvironment hostingEnviroment, IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings, IConfiguration config)
 {
     _logger = logger;
     this._movieRepository   = movieRepository;
     this._hostingEnviroment = hostingEnviroment;
     protector = dataProtectionProvider.CreateProtector(
         dataProtectionPurposeStrings.MovieIdRouteValue);
     _fileSizeLimit = config.GetValue <long>("FileSizeLimit");
 }
Ejemplo n.º 12
0
 public GigsController(IUnitOfWork unitOfWork,
                       UserManager <ApplicationUser> userManager, IHostEnvironment hostEnvironment,
                       IDataProtectionProvider dataProtectionProvider, DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _unitOfWork              = unitOfWork;
     _userManager             = userManager;
     _hostEnvironment         = hostEnvironment;
     _gigIdDataProtector      = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.GigIdRouteValue);
     _imageValueDataProtector = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.ImageValue);
 }
Ejemplo n.º 13
0
 public HomeController(IEmployeeRepository employeeRepository,
                       IHostingEnvironment hostingEnvironment,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _employeeRepository     = employeeRepository;
     this.hostingEnvironment = hostingEnvironment;
     // Pass the purpose string as a parameter
     this.protector = dataProtectionProvider.CreateProtector(
         dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 14
0
        public HomeController(IEmployeeRepository employeeRepository,
                              IWebHostEnvironment webHostEnvironment,
                              IDataProtectionProvider dataProtectionProvider,
                              DataProtectionPurposeStrings dataProtectionPurposeStrings)
        {
            _employeeRepository     = employeeRepository;
            this.webHostEnvironment = webHostEnvironment;

            protector = dataProtectionProvider
                        .CreateProtector(dataProtectionPurposeStrings.employeeIdRouteValue);
        }
Ejemplo n.º 15
0
 public AccountController(IDataProtectionProvider dataProtectionProvider, IGenericRepository <Tbl_Members> mem_repository,
                          IHttpContextAccessor httpContextAccessor, DataProtectionPurposeStrings dataProtectionPurposeStrings
                          , IHttpContextAccessor HttpContextAccessor)
 {
     Mem_Repository = mem_repository;
     DataProtectionPurposeStrings = dataProtectionPurposeStrings;
     this.protector = dataProtectionProvider.CreateProtector(
         dataProtectionPurposeStrings.EmployeeIdRouteValue);
     this.session             = httpContextAccessor.HttpContext.Session;
     this.HttpContextAccessor = HttpContextAccessor;
 }
Ejemplo n.º 16
0
 public HomeController(IHouseRepository houseRepository,
                       IHostingEnvironment hostingEnvironment,
                       ILogger <HomeController> logger,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _houseRepository        = houseRepository;
     this.hostingEnvironment = hostingEnvironment;
     this.logger             = logger;
     protector = dataProtectionProvider
                 .CreateProtector(dataProtectionPurposeStrings.HouseIdRouteValue);    //there is some logic behind that
 }
 public CategoriesController(
     ICategoriesService categoriesService,
     IProjectsService projectsService,
     IUsersService usersService,
     IDataProtectionProvider dataProtectionProvider,
     DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     this.categoriesService = categoriesService;
     this.projectsService   = projectsService;
     this.usersService      = usersService;
     this.protector         = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 18
0
 public AdministrationController(RoleManager <IdentityRole> roleManager,
                                 UserManager <ApplicationUser> userManager,
                                 ILogger <AdministrationController> logger,
                                 IDataProtectionProvider dataProtectionProvider,
                                 DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     this.roleManager = roleManager;
     this.userManager = userManager;
     this.logger      = logger;
     protector        = dataProtectionProvider
                        .CreateProtector(dataProtectionPurposeStrings.HouseIdRouteValue);
 }
Ejemplo n.º 19
0
 public FreelancersViewComponent(
     UserManager <ApplicationUser> userManager,
     IUsersService usersService,
     IDeletableEntityRepository <ApplicationUser> userRepository,
     IDataProtectionProvider dataProtectionProvider,
     DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     this.userManager    = userManager;
     this.usersService   = usersService;
     this.userRepository = userRepository;
     this.protector      = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 20
0
        public HomeController(IEmployeeRepository employeeRepository,
                              IWebHostEnvironment webHostEnvironment,
                              ILogger <HomeController> logger,
                              IDataProtectionProvider dataProtectionProvider,
                              DataProtectionPurposeStrings dpps)

        {
            _employeeRepository     = employeeRepository;
            this.webHostEnvironment = webHostEnvironment;
            this.logger             = logger;
            _dataProtector          = dataProtectionProvider.CreateProtector(dpps.EmployeeIdRouteValue);
        }
Ejemplo n.º 21
0
 public HomeController(ILogger <HomeController> logger, IEmployee emp,
                       IHostingEnvironment hostingEnvironment,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings
                       )
 {
     _logger             = logger;
     _employee           = emp;
     _hostingEnvironment = hostingEnvironment;
     this.protector      = dataProtectionProvider.CreateProtector(
         dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 22
0
 public HomeController(IStudentRepository studentRepository,
                       IWebHostEnvironment webHostEnvironment,
                       ILogger <HomeController> logger,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _studentRepository  = studentRepository;
     _webHostEnvironment = webHostEnvironment;
     _logger             = logger;
     _protector          = dataProtectionProvider
                           .CreateProtector(dataProtectionPurposeStrings.StudentIdRouteValue);
 }
Ejemplo n.º 23
0
 public OgrenciController(IOgrenciRepository ogrenciRepository,
                          IWebHostEnvironment hostingEnvironment,
                          ILogger <OgrenciController> logger,
                          IDataProtectionProvider dataProtectionProvider,
                          DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _ogrenciRepository      = ogrenciRepository;
     this.hostingEnvironment = hostingEnvironment;
     _logger   = logger;
     protector = dataProtectionProvider
                 .CreateProtector(dataProtectionPurposeStrings.OgrenciIdRouteValue);
 }
Ejemplo n.º 24
0
        public HomeController(IEmployeeRepository employeeRepository,
                              IHostingEnvironment hostingEnvironment,
                              ILogger <HomeController> logger,
                              IDataProtectionProvider dataProtectionProvider,
                              DataProtectionPurposeStrings dataProtectionPurposeStrings)
        {
            _employeeRepository = employeeRepository;
            _hostingEnvironment = hostingEnvironment;
            _logger             = logger;

            // add it to encrypt and decrypt query string
            _protector = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
        }
Ejemplo n.º 25
0
 public UserController(
     UserManager <Member> aMemberManager,
     SignInManager <Member> aSignInManager,
     StudyLogBookDbContext aDbContext,
     DataProtectionPurposeStrings aDataProtectionPurposeStrings,
     IDataProtectionProvider aDataProtectionProvider
     )
 {
     _MemberManager = aMemberManager;
     _SignInManager = aSignInManager;
     _DbContext     = aDbContext;
     _dataProtector = aDataProtectionProvider.CreateProtector(aDataProtectionPurposeStrings.MessageIdRouteValue);
 }
Ejemplo n.º 26
0
 public HomeController(IPersonRepository personRepository,
                       ILogger <ApplicationUser> logger,
                       IBookRepository bookRepository,
                       ICategoryRepository categoryRepository,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     this.personRepository   = personRepository;
     this.logger             = logger;
     this.bookRepository     = bookRepository;
     this.categoryRepository = categoryRepository;
     dataProtector           = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 27
0
 public HomeController(ITalentRepository talentRepository,
                       IHostingEnvironment hostingEnvironment,
                       ILogger <HomeController> logger,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings)
 {
     _talentRepository   = talentRepository;
     _hostingEnvironment = hostingEnvironment;
     _logger             = logger;
     // Pass the purpose string as a parameter
     this._protector = dataProtectionProvider.CreateProtector(
         dataProtectionPurposeStrings.EmployeeIdRouteValue);
 }
Ejemplo n.º 28
0
        public AccountController(
            UserManager <Member> aMemberManager,
            SignInManager <Member> aSignInManager,
            ITemplatedEmailSender aTemplatedEmailSender,
            DataProtectionPurposeStrings aDataProtectionPurposeStrings,
            IDataProtectionProvider aDataProtectionProvider

            )
        {
            _MemberManager        = aMemberManager;
            _SignInManager        = aSignInManager;
            _TemplatedEmailSender = aTemplatedEmailSender;
            _dataProtector        = aDataProtectionProvider.CreateProtector(aDataProtectionPurposeStrings.UserIdRouteValue);
        }
Ejemplo n.º 29
0
 public JobApplicationController(IJobApplicationPage jobApplicationPage,
                                 RecruitmentPortalDbContext dbContext,
                                 ISchedulesPage schedulesPage, IDataProtectionProvider dataProtectionProvider,
                                 DataProtectionPurposeStrings dataProtectionPurposeStrings,
                                 ISchedulesUsersPage schedulesUsersPage,
                                 ICandidatePage candidatePage)
 {
     _jobApplicationPage = jobApplicationPage;
     _schedulesPage      = schedulesPage;
     _schedulesUsersPage = schedulesUsersPage;
     _candidatePage      = candidatePage;
     _dbContext          = dbContext;
     _Protector          = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.JobAppDetailIdRouteValue);
 }
Ejemplo n.º 30
0
 public BookController(IBookRepository bookRepository,
                       IBookUserRepository bookUserRepository,
                       ICategoryRepository categoryRepository,
                       IHostEnvironment hostEnvironment,
                       IDataProtectionProvider dataProtectionProvider,
                       DataProtectionPurposeStrings dataProtectionPurposeStrings,
                       UserManager <ApplicationUser> userManager)
 {
     this.categoryRepository = categoryRepository;
     this.bookRepository     = bookRepository;
     this.hostEnvironment    = hostEnvironment;
     dataProtector           = dataProtectionProvider.CreateProtector(dataProtectionPurposeStrings.EmployeeIdRouteValue);
     this.userManager        = userManager;
     this.bookUserRepository = bookUserRepository;
 }