// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); InjectorConfig.RegisterServices(services); var assemblyName = Assembly.GetExecutingAssembly().GetName().Name; var info = new Info { Version = SwaggerVersionName, Title = "API teste Inventti", Description = "API para testar strings primas", }; SwaggerConfig.AddSwagger(services, assemblyName, info); }
// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); DependencyInjector.RegisterServices(services); SwaggerConfig.AddSwagger(services); }