Example #1
0
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            var serviceConfig = new ServiceConfig(services, Configuration, typeof(Startup).Assembly);

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

            return(ServiceInitializationService.InitializeServices <WebSettings>(serviceConfig));
        }
 public void ConfigureContainer(ServiceRegistry services)
 {
     ServiceInitializationService.InitializeServices(services, Configuration);
 }