Esempio n. 1
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory, FunnyHistoryContext context)
 {
     loggerFactory.AddConsole(Configuration.GetSection("Logging"));
     loggerFactory.AddDebug();
     app.UseCors("SiteCorsPolicy");
     app.UseMvc();
     DbInit.Initialize(context);
 }
Esempio n. 2
0
 public HistoryRepository(FunnyHistoryContext context)
 {
     _context = context;
 }