// This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddControllers();
            services.AddHttpClient();
            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new OpenApiInfo {
                    Title = "TownSuite.ConversionServer.APISite", Version = "v1"
                });
            });

            var standardServices = new StandardServices.StandardServices();

            standardServices.AddStandardServices(services);
        }
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddSingleton <BasicAuthConfigs>(i => Configuration.GetSection("BasicAuth").Get <BasicAuthConfigs>());
            services.AddControllers();
            services.AddScoped <AuthenticationEvents>();
            services.AddHttpClient();
            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new OpenApiInfo {
                    Title = "TownSuite.ConversionServer.APISite", Version = "v1"
                });
            });
            services.AddAuthentication(BasicAuthenticationDefaults.AuthenticationScheme)
            .AddBasicAuthentication(
                options =>
            {
                options.Realm      = "TownSuite ConversionServer";
                options.EventsType = typeof(AuthenticationEvents);
            });
            var standardServices = new StandardServices.StandardServices();

            standardServices.AddStandardServices(services);
        }