예제 #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();
        }
예제 #2
0
 public UserService(LitUpContext litUpContext)
 {
     this.litUpContext = litUpContext;
 }
예제 #3
0
 public WeatherService(LitUpContext context)
 {
     this.context = context;
 }