public MedicalDeviceLogRepository(CureContext context)
 {
     _context = context;
 }
 public MedicalDevicesController(CureContext context, IHostingEnvironment environment, IMedicalDeviceLogRepository mdrepository)
 {
     _environment  = environment;
     _context      = context;
     _mdrepository = mdrepository;
 }
Esempio n. 3
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, CureContext context)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();
            RolesData.SeedRoles(app.ApplicationServices).Wait();

            app.UseApplicationInsightsRequestTelemetry();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseDatabaseErrorPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseApplicationInsightsExceptionTelemetry();

            app.UseStaticFiles();

            app.UseIdentity();

            // Add external authentication middleware below. To configure them please see http://go.microsoft.com/fwlink/?LinkID=532715

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

            DbInitializer.Initialize(context);
        }
Esempio n. 4
0
 public FlagsController(CureContext context, ApplicationDbContext appcontext)
 {
     _context    = context;
     _appcontext = appcontext;
 }
Esempio n. 5
0
 public BinsController(CureContext context)
 {
     _context = context;
 }