Exemple #1
0
 public ComandosUsuario(IRepositorioUsuario repositorioUsuario,
                        IServicoAutenticacao servicoAutenticacao,
                        IServicoUsuario servicoUsuario,
                        IServicoPerfil servicoPerfil,
                        IServicoEol servicoEOL,
                        IServicoTokenJwt servicoTokenJwt,
                        IServicoEmail servicoEmail,
                        IConfiguration configuration,
                        IRepositorioCache repositorioCache,
                        IServicoAbrangencia servicoAbrangencia,
                        IRepositorioAtribuicaoEsporadica repositorioAtribuicaoEsporadica,
                        IRepositorioAtribuicaoCJ repositorioAtribuicaoCJ,
                        IRepositorioHistoricoEmailUsuario repositorioHistoricoEmailUsuario)
 {
     this.repositorioUsuario               = repositorioUsuario ?? throw new ArgumentNullException(nameof(repositorioUsuario));
     this.servicoAutenticacao              = servicoAutenticacao ?? throw new ArgumentNullException(nameof(servicoAutenticacao));
     this.servicoUsuario                   = servicoUsuario ?? throw new ArgumentNullException(nameof(servicoUsuario));
     this.servicoPerfil                    = servicoPerfil ?? throw new ArgumentNullException(nameof(servicoPerfil));
     this.servicoEOL                       = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.servicoTokenJwt                  = servicoTokenJwt ?? throw new ArgumentNullException(nameof(servicoTokenJwt));
     this.servicoAbrangencia               = servicoAbrangencia ?? throw new ArgumentNullException(nameof(servicoAbrangencia));
     this.repositorioAtribuicaoEsporadica  = repositorioAtribuicaoEsporadica ?? throw new ArgumentNullException(nameof(repositorioAtribuicaoEsporadica));
     this.repositorioAtribuicaoCJ          = repositorioAtribuicaoCJ ?? throw new ArgumentNullException(nameof(repositorioAtribuicaoCJ));
     this.repositorioHistoricoEmailUsuario = repositorioHistoricoEmailUsuario ?? throw new ArgumentNullException(nameof(repositorioHistoricoEmailUsuario));
     this.servicoEmail                     = servicoEmail ?? throw new ArgumentNullException(nameof(servicoEmail));
     this.configuration                    = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.repositorioCache                 = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
 }
Exemple #2
0
        public ComandosUsuario(IRepositorioUsuario repositorioUsuario,
            IServicoAutenticacao servicoAutenticacao,
            IServicoUsuario servicoUsuario,
            IServicoPerfil servicoPerfil,
            IServicoEOL servicoEOL,
            IServicoTokenJwt servicoTokenJwt,
            IServicoEmail servicoEmail,
            IConfiguration configuration,
            IRepositorioCache repositorioCache,
            IServicoAbrangencia servicoAbrangencia)
        {
            this.repositorioUsuario = repositorioUsuario ??
                throw new System.ArgumentNullException(nameof(repositorioUsuario));
            this.servicoAutenticacao = servicoAutenticacao ??
                throw new System.ArgumentNullException(nameof(servicoAutenticacao));
            this.servicoUsuario = servicoUsuario ??
                throw new System.ArgumentNullException(nameof(servicoUsuario));
            this.servicoPerfil = servicoPerfil ??
                throw new System.ArgumentNullException(nameof(servicoPerfil));
            this.servicoEOL = servicoEOL ??
                throw new System.ArgumentNullException(nameof(servicoEOL));
            this.servicoTokenJwt = servicoTokenJwt ??
                throw new System.ArgumentNullException(nameof(servicoTokenJwt));
            this.servicoAbrangencia = servicoAbrangencia ??
                throw new System.ArgumentNullException(nameof(servicoAbrangencia));

            this.servicoEmail = servicoEmail ?? throw new ArgumentNullException(nameof(servicoEmail));
            this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
            this.repositorioCache = repositorioCache ?? throw new ArgumentNullException(nameof(repositorioCache));
        }
 public TokenServiceMiddleware(IServicoTokenJwt servicoToken)
 {
     this.servicoToken = servicoToken ?? throw new ArgumentException(nameof(servicoToken));
 }