public ServiceProblem(IConfiguration config) { this.serviceZabbix = new ServiceZabbix(); this.serviceUser = new ServiceUser(config); this.problemRepo = new ProblemRepository(config); this.userRepo = new UserRepository(config); }
public LoginController(IConfiguration config) { service = new ServiceUser(config); issuer = config.GetSection("Issuer").Value; audience = config.GetSection("Audience").Value; key = config.GetSection("SigningKey").Value; serviceZabbix = new ServiceZabbix(); }