Esempio n. 1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddControllers();

            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new OpenApiInfo {
                    Title = "My API", Version = "v1"
                });
            });

            NativeInjectorBootstraper.RegisterServices(services, Configuration);
        }
Esempio n. 2
0
 // This method gets called by the runtime. Use this method to add services to the container.
 // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddCors();
     services.AddAutoMapper();
     NativeInjectorBootstraper.RegisterServices(services);
     services.AddMvc();
     services.AddSwaggerGen(x =>
     {
         x.SwaggerDoc("V1", new Info {
             Title = "CRUD Básico MongoDB", Version = "V1"
         });
     });
 }
Esempio n. 3
0
 private static void RegisterServices(IServiceCollection services)
 {
     NativeInjectorBootstraper.RegisterServices(services);
 }
 public static void AddDependencyInjectionSetup(this IServiceCollection services, IConfiguration configuration)
 {
     NativeInjectorBootstraper.RegisterServices(services, configuration);
 }