Ejemplo n.º 1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ModuleLoader moduleLoader,
                              IAttribService attribService)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseMiddleware <BlackboxMiddleware>();

            //            app.UseHttpsRedirection();

            app.UseSession();
            app.UseRouting();

            app.UseAuthentication();
            app.UseAuthorization();

            app.UseEndpoints(endpoints => { endpoints.MapControllers(); });

            moduleLoader.Load();
            attribService.LoadAttribData();
        }
Ejemplo n.º 2
0
 public CarClassesService(IAttribService attribService)
 {
     _attribService = attribService;
     UpdateClasses();
 }