Example #1
0
 public UsersService(
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     HiringGenieDbContext context,
     IConfiguration configuration
     )
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _configuration = configuration;
     _context       = context;
 }
Example #2
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, IHostingEnvironment env, HiringGenieDbContext dbContext)
 {
     if (env.IsDevelopment())
     {
         app.UseDeveloperExceptionPage();
     }
     else
     {
         // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
         app.UseHsts();
     }
     app.UseAuthentication();
     app.UseHttpsRedirection();
     app.UseOpenApi();
     app.UseSwaggerUi3();
     app.UseCors(MyAllowSpecificOrigins);
     app.UseMvc();
 }
 public ApplicationsService(HiringGenieDbContext context, IInterviewsService interviewsService)
 {
     _dbContext         = context;
     _interviewsService = interviewsService;
 }
Example #4
0
 public JobsService(HiringGenieDbContext context)
 {
     _dbContext = context;
 }
Example #5
0
 public SchedulersService(HiringGenieDbContext context, IInterviewsService interviewsService)
 {
     _dbContext         = context;
     _interviewsService = interviewsService;
 }
Example #6
0
 public InterviewsService(HiringGenieDbContext context)
 {
     _dbContext = context;
 }