public AppointmentsController(EngagementOrganizerContext context, IMapper mapper, IWarningChecker warningChecker, IConfiguration configuration) { _context = context; _mapper = mapper; _warningChecker = warningChecker; this.configuration = configuration; }
public UpstreamApiAppointments(EngagementOrganizerContext context, IHttpClientFactory httpClientFactory, IConfiguration configuration, ILogger <UpstreamApiAppointments> logger) { _context = context; _httpClientFactory = httpClientFactory; _configuration = configuration; _logger = logger; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostEnvironment env, EngagementOrganizerContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { } context.Database.EnsureCreated(); app.UseCors("AllowAllOrigin"); app.UseSwagger(); // Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.), // specifying the Swagger JSON endpoint. app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "EngagementOrganizer API V1"); }); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public AppointmentsController(EngagementOrganizerContext context, IMapper mapper, IWarningChecker warningChecker, IConfiguration configuration, IUpstreamApiAppointments upstreamAppointment) { _context = context; _mapper = mapper; _warningChecker = warningChecker; _configuration = configuration; _upstreamAppointments = upstreamAppointment; }
public AppointmentTypesController(EngagementOrganizerContext context) { _context = context; }
public CustomersController(EngagementOrganizerContext context) { _context = context; }
public UtilizationController(EngagementOrganizerContext context, ILogger <UtilizationController> logger) { _context = context; _logger = logger; }