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, LitUpContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            DbInitializer.Initialize(context);
            app.UseAuthentication();
            app.UseHttpsRedirection();
            app.UseMvc();
        }
Exemplo n.º 2
0
 public UserService(LitUpContext litUpContext)
 {
     this.litUpContext = litUpContext;
 }
Exemplo n.º 3
0
 public WeatherService(LitUpContext context)
 {
     this.context = context;
 }