Ejemplo n.º 1
0
 public MedicalDeviceLogRepository(CureContext context)
 {
     _context = context;
 }
Ejemplo n.º 2
0
 public MedicalDevicesController(CureContext context, IHostingEnvironment environment, IMedicalDeviceLogRepository mdrepository)
 {
     _environment  = environment;
     _context      = context;
     _mdrepository = mdrepository;
 }
Ejemplo 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);
        }
Ejemplo n.º 4
0
 public FlagsController(CureContext context, ApplicationDbContext appcontext)
 {
     _context    = context;
     _appcontext = appcontext;
 }
Ejemplo n.º 5
0
 public BinsController(CureContext context)
 {
     _context = context;
 }