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;
 }
Esempio n. 3
0
        // 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;
 }
Esempio n. 5
0
 public AppointmentTypesController(EngagementOrganizerContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public CustomersController(EngagementOrganizerContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public UtilizationController(EngagementOrganizerContext context, ILogger <UtilizationController> logger)
 {
     _context = context;
     _logger  = logger;
 }