private readonly SgpURLSettings _sgpURLSettings; // Objeto referente às URLS no appsettings #endregion ==================== ATTRIBUTES ==================== #region ==================== CONSTRUCTORS ==================== /// <summary> /// Construtor padrão para o PlanejamentoController, faz injeção de dependências do SMEContext. /// </summary> /// <param name="db">Depêndencia de dataContext (SMEContext)</param> public PlanejamentoController(SMEContext db, IOptions <SgpURLSettings> sgpURLSettings) { _db = db; _sgpURLSettings = sgpURLSettings.Value; }
private readonly SgpURLSettings _sgpURLSettings; // Objeto referente às URLS no appsettings #endregion ==================== ATTRIBUTES ==================== #region ==================== CONSTRUCTORS ==================== public AuthController(IOptions <SgpURLSettings> sgpURLSettings) { _sgpURLSettings = sgpURLSettings.Value; }