// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, PizzaOrderContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseAuthentication(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); context.EnsureDataSeeding(); app.UseWebSockets(); app.UseGraphQL <PizzaOrderSchema>(); app.UseGraphQLWebSockets <PizzaOrderSchema>(); // for GraphQL subscription app.UseGraphQLPlayground(); }
public OrderDetailService(PizzaOrderContext context, IEventService eventService) { this.context = context; this.eventService = eventService; }
public PizzaOrderRepository(PizzaOrderContext dbContext) : base(dbContext) { }
public EFRepository(PizzaOrderContext dbContext) { this.dbContext = dbContext; }
public PizzaDetailService(PizzaOrderContext context) { this.context = context; }