// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, GerenciadorFinanceiroContext context) { context.Database.Migrate(); app.UseHealthChecks("/health"); if (env.IsDevelopment()) { app.UseCors("MyPolicy"); app.UseDeveloperExceptionPage(); } else { app.UseHsts(); app.UseHttpsRedirection(); } app.UseAuthentication(); app.UseMvc(); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, GerenciadorFinanceiroContext context) { context.Database.Migrate(); app.UseHealthChecks("/health", new HealthCheckOptions() { ResponseWriter = WriteResponse, }); if (env.IsDevelopment()) { app.UseCors("MyPolicy"); app.UseDeveloperExceptionPage(); } else { app.UseCors("MyProductionPolicy"); } app.UseAuthentication(); app.UseMvc(); }
public UsuarioController(GerenciadorFinanceiroContext context) { _context = context; }
public ReceitaController(GerenciadorFinanceiroContext context, IMapper mapper, IUsuarioService usuarioService) { _context = context; _mapper = mapper; _usuarioService = usuarioService; }
public UsuarioService(GerenciadorFinanceiroContext context, IConfiguration configuration) { _context = context; _configuration = configuration; }
public ContaController(GerenciadorFinanceiroContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public UsuarioService(GerenciadorFinanceiroContext context) { _context = context; }
public DespesaController(GerenciadorFinanceiroContext context) { _context = context; }
public ReceitaController(GerenciadorFinanceiroContext context) { _context = context; }