// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env,
                              IRealEstateDataProvider realEstateDataProvider, IRealEstateDataManager realEstateDataManager,
                              ILeadDataManager leadDataManager, ILeadDataProvider leadDataProvider, ILoggerFactory loggerFactory)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }

            app.UseCors("ApiCorsPolicy");
            app.UseCors(builder =>
                        builder.AllowAnyHeader().AllowAnyOrigin().AllowAnyMethod());
            app.UseHttpsRedirection();
            app.UseMvc();
        }
示例#2
0
 public RentValuationController(IRealEstateDataManager realEstateDataManager)
 {
     this.realEstateDataManager = realEstateDataManager;
 }