public ServicosController(ApplicationDbContext context,
                           IEmailAPI email,
                           ILoggerAPI logger)
 {
     _context = context;
     _email   = email;
     _logger  = logger;
 }
Example #2
0
 public EmailAPI(IOptions <AppSettings> settings, ILoggerAPI logger, IHttpContextAccessor accessor)
 {
     _appSettings   = settings.Value;
     _email         = _appSettings.Email;
     _emailPassword = _appSettings.EmailPassword;
     _emailNome     = _appSettings.EmailNomeApresentado;
     _emailSmtp     = _appSettings.EmailSmtp;
     _logger        = logger;
     _user          = accessor.HttpContext.User;
 }
 public PartilhaveisController(ApplicationDbContext context,
                               IOnedriveAPI onedrive,
                               IOptions <AppSettings> appSettings,
                               ILoggerAPI logger)
 {
     _context     = context;
     _onedrive    = onedrive;
     _appSettings = appSettings.Value;
     _logger      = logger;
 }
Example #4
0
 public EmailController(ApplicationDbContext context,
                        ILoggerAPI logger,
                        IEmailAPI email,
                        IOptions <AppSettings> appSettings)
 {
     _context     = context;
     _logger      = logger;
     _email       = email;
     _appSettings = appSettings.Value;
 }
Example #5
0
 public GaleriasController(ApplicationDbContext context,
                           IOnedriveAPI onedrive,
                           IEmailAPI email,
                           IOptions <AppSettings> settings,
                           ILoggerAPI logger)
 {
     _context     = context;
     _onedrive    = onedrive;
     _email       = email;
     _appSettings = settings.Value;
     _logger      = logger;
 }
 public UsersController(ApplicationDbContext context,
                        UserManager <IdentityUser> userManager,
                        SignInManager <IdentityUser> signInManager,
                        ILoggerAPI logger,
                        IOptions <AppSettings> settings,
                        IEmailAPI email)
 {
     _context       = context;
     _logger        = logger;
     _signInManager = signInManager;
     _userManager   = userManager;
     _appSettings   = settings.Value;
     _email         = email;
 }
Example #7
0
        public OnedriveAPI(ApplicationDbContext context,
                           IHttpClientFactory clientFactory,
                           IOptions <AppSettings> settings,
                           ILoggerAPI logger,
                           IEmailAPI emailAPI)
        {
            _context                 = context;
            _appSettings             = settings.Value;
            _emailAPI                = emailAPI;
            _logger                  = logger;
            _applicationClientId     = _appSettings.ApplicationClientId;
            _applicationClientSecret = _appSettings.ApplicationClientSecret;

            // Utilizado para fazer pedidos Http
            _client = clientFactory.CreateClient();

            // Url registado no portal da Azure
            _redirectUrl = _appSettings.SiteUrl + "/ContasOnedrive/Create";
        }
 public ServicosSolicitadosController(ApplicationDbContext context, ILoggerAPI logger)
 {
     _context = context;
     _logger  = logger;
 }
Example #9
0
 public TiposController(ApplicationDbContext context, ILoggerAPI logger)
 {
     _context = context;
     _logger  = logger;
 }
Example #10
0
 public RequerentesController(ApplicationDbContext context, ILoggerAPI logger)
 {
     _context = context;
     _logger  = logger;
 }
Example #11
0
 public ContasOnedriveController(ApplicationDbContext context, IOnedriveAPI onedrive, ILoggerAPI logger)
 {
     _context  = context;
     _onedrive = onedrive;
     _logger   = logger;
 }