Exemplo n.º 1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, WKContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
                app.UseDatabaseErrorPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

            app.UseAuthentication();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "areaRoute",
                    template: "{area:exists}/{controller=Maintain}/{action=Index}/{id?}");

                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });

            DbInitializer.Initialize(context);
        }
Exemplo n.º 2
0
 public KnockoutController(WKContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public ToernooiOpvuller(WKContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public WedstrijdController(WKContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public ToernooiSimulator(WKContext context)
 {
     _context  = context;
     _random   = new Random();
     _opvuller = new ToernooiOpvuller(_context);
 }
Exemplo n.º 6
0
 public SimulatieController(WKContext context)
 {
     _context   = context;
     _simulator = new ToernooiSimulator(_context);
 }
Exemplo n.º 7
0
 public PouleController(WKContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public SpelerController(WKContext context)
 {
     _context = context;
 }