コード例 #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, SteppeContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseCors(builder =>
                        builder.AllowAnyHeader().AllowAnyOrigin().AllowAnyMethod());

            app.UseAuthentication();
            app.UseHttpsRedirection();
            app.UseMvc();

            SteppeInitializer.Initialize(context);
        }
コード例 #2
0
 public AuthController(UserManager <ApplicationUser> userManager, SteppeContext steppeContext, IConfiguration configuration)
 {
     _userManager   = userManager;
     _configuration = configuration;
     _steppeContext = steppeContext;
 }
コード例 #3
0
 public OrganizationModel(SteppeContext context)
 {
     _context = context;
 }
コード例 #4
0
 public UserModel(SteppeContext context)
 {
     _context = context;
 }
コード例 #5
0
 public OrganizationController(SteppeContext context)
 {
     _context = context;
 }