// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, TechnicalCoreDbContext dbcontext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "TechnicalCore.Api v1")); } else { app.UseExceptionHandler("/Home/Error"); app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.UseGraphQL <TechnicalCoreSchema>(); app.UseGraphQLPlayground(new PlaygroundOptions()); }
public ArticleRepository(TechnicalCoreDbContext dbContext) { _dbContext = dbContext; }