// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, ELearningDbContext db) { if (env.IsDevelopment()) { app.UseCors(builder => builder .WithOrigins("http://localhost:60000", "http://localhost:5001") //<-- OP's origin .AllowAnyHeader() .AllowAnyOrigin() .AllowAnyMethod() .AllowCredentials() ); } loggerFactory.AddConsole(Configuration.GetSection("Logging")); //loggerFactory.AddDebug(); loggerFactory.AddFile("Logs/ELearning_Logs_{Date}.txt"); app.UseResponseCompression().UseStaticFiles(); app.UseTokenMiddlewareExtensions(); app.UseMvc(); InitDb.Init(db); }
public CompileCodeCommandHandler(ELearningDbContext context, ICompilerService compiler, IFileSaveService filesave) { _context = context; _compiler = compiler; _filesave = filesave; _now = DateTime.Now; }
public CreateUserCommandHandler(ELearningDbContext context) { _context = context; _random = new Random(); }
public GetGroupSectionsListByIdQueryHandler(ELearningDbContext context) { _context = context; }
public GetExerciseByIdQueryHandler(ELearningDbContext context) { _context = context; }
public CoursesRepository(ELearningDbContext context, ILogger <CoursesRepository> log, IRateRepository rate) { _context = context; _log = log; _rate = rate; }
public UpdateSectionCommandHandler(ELearningDbContext context) { _context = context; }
public DeleteSubjectCommandHandler(ELearningDbContext context) { _context = context; }
public SaveAssignmentSolutionCommandHandler(ELearningDbContext context) { _context = context; }
public GetAssignmentEvaluationsListByIdQueryHandler(ELearningDbContext context) { _context = context; }
public GetSectionEvaluationsListByIdQueryHandler(ELearningDbContext context) { _context = context; }
public GetSubjectByIdQueryHandler(ELearningDbContext context) { _context = context; }
public DeleteGroupCommandHandler(ELearningDbContext context) { _context = context; }
public CategoryRepository(ELearningDbContext context, ILogger <CategoryRepository> log) { _context = context; _log = log; }
public GetAssignmentsListQueryHandler(ELearningDbContext context) { _context = context; }
public LenguajesController(ELearningDbContext context) { _context = context; }
public GetPresentAssignmentsListByIdQueryHandler(ELearningDbContext context) { _context = context; }
public GetVariantsListQueryHandler(ELearningDbContext context) { _context = context; }
public NotificationRepository(ELearningDbContext context) { _context = context; }
public GetEvaluationByIdQueryHandler(ELearningDbContext context) { _context = context; }
public ProfesoresController(ELearningDbContext context) { _context = context; }
public GetUserByIdQueryHandler(ELearningDbContext context) { _context = context; }
public ExamDetailsRepository(ELearningDbContext context, ILogger <ExamDetailsRepository> log) { _context = context; _log = log; }
public CetificateRepository(ELearningDbContext context, ILogger <CetificateRepository> log) { _context = context; _log = log; }
public DeleteAssignmentCommandHandler(ELearningDbContext context) { _context = context; }
public UpdateUserCommandHandler(ELearningDbContext context) { _context = context; }
public LessonRepository(ELearningDbContext context, ILogger<LessonRepository> log) { _context = context; _log = log; }
public DeleteEvaluationCommandHandler(ELearningDbContext context) { _context = context; }
public CourseDetailsRepository(ELearningDbContext context, ILogger <CourseDetailsRepository> log) { _context = context; _log = log; }
public VideosController(ELearningDbContext context) { _context = context; }