// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app,
                              IWebHostEnvironment env,
                              CoreCommandContext context,
                              ILoggerManager logger)
        {
            context.Database.Migrate();
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            app.ConfigureExceptionHandler(logger);
            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseCors("CorsPolicy");

            //redirect all proxy headers to current requests
            app.UseForwardedHeaders(new ForwardedHeadersOptions {
                ForwardedHeaders = Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders.All
            });

            app.UseRouting();

            //app.UseAuthentication();
            //app.UseAuthorization();
            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
 public CommandImageRepository(CoreCommandContext repoContext)
     : base(repoContext)
 {
 }
 protected BaseRepository(CoreCommandContext repoContext)
 {
     CoreCommandContext = repoContext;
 }
Exemple #4
0
 public RepositoryWrapper(CoreCommandContext coreCommandContext)
 {
     CoreCommandContext = coreCommandContext;
 }