private void InitializeContainer(IApplicationBuilder app)
 {
     container.RegisterMvcControllers(app);
     InjecaoDependenciaConfig.Config();
     // Allow Simple Injector to resolve services from ASP.NET Core.
     container.AutoCrossWireAspNetComponents(app);
 }
 public void ConfigureServices(IServiceCollection services)
 {
     InjecaoDependenciaConfig.IntegrateSimpleInjector(services);
     services.AddMvc();
 }
 public Startup(IConfiguration configuration)
 {
     container     = InjecaoDependenciaConfig.CreateInstance(Lifestyle.Transient);
     Configuration = configuration;
 }