using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.AspNetCore.Mvc;

using Prise;
using Prise.IntegrationTestsContract;
using Prise.IntegrationTestsHost.Services;
using System;

namespace Prise.IntegrationTestsHost
{
    public partial class Startup
    {
#if NETCORE3_1
        private void ConfigureTargetFramework(IServiceCollection services)
        {
            services.AddControllers();
            services.AddDirectoryBrowser();
        }
#endif

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
#if NETCORE3_1
        private void ConfigureTargetFramework(IApplicationBuilder app)
        {
            app.UseRouting();
            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
#endif            
    }
}
