public void ConfigureServices(IServiceCollection services)
        {
            services.AddSingleton(typeof(ILoggerAdapter <>), typeof(LoggerAdapter <>));
            services.AddScoped <IJiraAccess, JiraAccess>();
            services.AddTransient <IHttpContextAccessor, HttpContextAccessor>();

            // Load the App settings into a strongly-typed class.
            services.Configure <AppSettings>(Configuration.GetSection("AppSettings"));

            HttpClientHelper.AddNamedHttpClient(services, HttpClientTypeEnum.Jira, new Random());

            // .NET Core compatibility version
            services.AddMvc()
            .SetCompatibilityVersion(CompatibilityVersion.Version_2_1);

            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new Info
                {
                    Title   = "External Tool API",
                    Version = "v1"
                });
            });
        }