コード例 #1
0
 public ServicoEvento(IRepositorioEvento repositorioEvento,
                      IRepositorioEventoTipo repositorioEventoTipo,
                      IRepositorioPeriodoEscolar repositorioPeriodoEscolar,
                      IServicoUsuario servicoUsuario,
                      IRepositorioFeriadoCalendario repositorioFeriadoCalendario,
                      IRepositorioTipoCalendario repositorioTipoCalendario,
                      IComandosWorkflowAprovacao comandosWorkflowAprovacao,
                      IRepositorioAbrangencia repositorioAbrangencia, IConfiguration configuration,
                      IUnitOfWork unitOfWork, IServicoNotificacao servicoNotificacao, IServicoLog servicoLog, IServicoDiaLetivo servicoDiaLetivo, IMediator mediator)
 {
     this.repositorioEvento            = repositorioEvento ?? throw new System.ArgumentNullException(nameof(repositorioEvento));
     this.repositorioEventoTipo        = repositorioEventoTipo ?? throw new System.ArgumentNullException(nameof(repositorioEventoTipo));
     this.repositorioPeriodoEscolar    = repositorioPeriodoEscolar ?? throw new System.ArgumentNullException(nameof(repositorioPeriodoEscolar));
     this.servicoUsuario               = servicoUsuario ?? throw new System.ArgumentNullException(nameof(servicoUsuario));
     this.repositorioFeriadoCalendario = repositorioFeriadoCalendario ?? throw new System.ArgumentNullException(nameof(repositorioFeriadoCalendario));
     this.repositorioTipoCalendario    = repositorioTipoCalendario ?? throw new System.ArgumentNullException(nameof(repositorioTipoCalendario));
     this.comandosWorkflowAprovacao    = comandosWorkflowAprovacao ?? throw new ArgumentNullException(nameof(comandosWorkflowAprovacao));
     this.repositorioAbrangencia       = repositorioAbrangencia ?? throw new ArgumentNullException(nameof(repositorioAbrangencia));
     this.configuration      = configuration;
     this.unitOfWork         = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.servicoNotificacao = servicoNotificacao ?? throw new ArgumentNullException(nameof(servicoNotificacao));
     this.servicoLog         = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.servicoDiaLetivo   = servicoDiaLetivo ?? throw new ArgumentNullException(nameof(servicoDiaLetivo));
     this.mediator           = mediator ?? throw new ArgumentNullException(nameof(mediator));
 }
コード例 #2
0
 public InserirAulaRecorrenteCommandHandler(IMediator mediator,
                                            IServicoEol servicoEOL,
                                            IServicoLog servicoLog,
                                            IRepositorioAula repositorioAula,
                                            IRepositorioNotificacaoAula repositorioNotificacaoAula,
                                            IServicoNotificacao servicoNotificacao,
                                            IUnitOfWork unitOfWork)
 {
     this.mediator                   = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this.servicoEOL                 = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.servicoLog                 = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.repositorioAula            = repositorioAula ?? throw new ArgumentNullException(nameof(repositorioAula));
     this.repositorioNotificacaoAula = repositorioNotificacaoAula ?? throw new ArgumentNullException(nameof(repositorioNotificacaoAula));
     this.servicoNotificacao         = servicoNotificacao ?? throw new ArgumentNullException(nameof(servicoNotificacao));
     this.unitOfWork                 = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
コード例 #3
0
 public ConnectionMultiplexerSME(string host, IServicoLog servicoLog)
 {
     try
     {
         this.connectionMultiplexer = ConnectionMultiplexer
                                      .Connect(string.Concat(host, $",ConnectTimeout={TimeSpan.FromSeconds(1).TotalMilliseconds}"));
     }
     catch (RedisConnectionException rcex)
     {
         servicoLog.Registrar($"Erro de conexão com o servidor Redis. {rcex}");
     }
     catch (Exception ex)
     {
         servicoLog.Registrar(ex);
     }
 }
コード例 #4
0
 public ServicoAula(IRepositorioAula repositorioAula,
                    IServicoEOL servicoEOL,
                    IRepositorioTipoCalendario repositorioTipoCalendario,
                    IServicoDiaLetivo servicoDiaLetivo,
                    IConsultasGrade consultasGrade,
                    IConsultasPeriodoEscolar consultasPeriodoEscolar,
                    IConsultasFrequencia consultasFrequencia,
                    IConsultasPlanoAula consultasPlanoAula,
                    IServicoLog servicoLog,
                    IServicoNotificacao servicoNotificacao,
                    IComandosWorkflowAprovacao comandosWorkflowAprovacao,
                    IComandosPlanoAula comandosPlanoAula,
                    IComandosNotificacaoAula comandosNotificacaoAula,
                    IServicoFrequencia servicoFrequencia,
                    IConfiguration configuration,
                    IRepositorioAtividadeAvaliativa repositorioAtividadeAvaliativa,
                    IRepositorioAtribuicaoCJ repositorioAtribuicaoCJ,
                    IRepositorioTurma repositorioTurma,
                    IServicoWorkflowAprovacao servicoWorkflowAprovacao,
                    IServicoUsuario servicoUsuario,
                    IUnitOfWork unitOfWork)
 {
     this.repositorioAula                = repositorioAula ?? throw new System.ArgumentNullException(nameof(repositorioAula));
     this.servicoEOL                     = servicoEOL ?? throw new System.ArgumentNullException(nameof(servicoEOL));
     this.repositorioTipoCalendario      = repositorioTipoCalendario ?? throw new System.ArgumentNullException(nameof(repositorioTipoCalendario));
     this.servicoDiaLetivo               = servicoDiaLetivo ?? throw new System.ArgumentNullException(nameof(servicoDiaLetivo));
     this.consultasGrade                 = consultasGrade ?? throw new System.ArgumentNullException(nameof(consultasGrade));
     this.consultasPeriodoEscolar        = consultasPeriodoEscolar ?? throw new ArgumentNullException(nameof(consultasPeriodoEscolar));
     this.consultasFrequencia            = consultasFrequencia ?? throw new ArgumentNullException(nameof(consultasFrequencia));
     this.consultasPlanoAula             = consultasPlanoAula ?? throw new ArgumentNullException(nameof(consultasPlanoAula));
     this.servicoLog                     = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.comandosWorkflowAprovacao      = comandosWorkflowAprovacao ?? throw new ArgumentNullException(nameof(comandosWorkflowAprovacao));
     this.configuration                  = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.servicoNotificacao             = servicoNotificacao ?? throw new ArgumentNullException(nameof(servicoNotificacao));
     this.comandosPlanoAula              = comandosPlanoAula ?? throw new ArgumentNullException(nameof(comandosPlanoAula));
     this.servicoFrequencia              = servicoFrequencia ?? throw new ArgumentNullException(nameof(servicoFrequencia));
     this.repositorioAtividadeAvaliativa = repositorioAtividadeAvaliativa ?? throw new ArgumentNullException(nameof(repositorioAtividadeAvaliativa));
     this.repositorioAtribuicaoCJ        = repositorioAtribuicaoCJ ?? throw new ArgumentNullException(nameof(repositorioAtribuicaoCJ));
     this.repositorioTurma               = repositorioTurma ?? throw new ArgumentNullException(nameof(repositorioTurma));
     this.servicoWorkflowAprovacao       = servicoWorkflowAprovacao ?? throw new ArgumentNullException(nameof(servicoWorkflowAprovacao));
     this.servicoUsuario                 = servicoUsuario ?? throw new ArgumentNullException(nameof(servicoUsuario));
     this.comandosNotificacaoAula        = comandosNotificacaoAula ?? throw new ArgumentNullException(nameof(comandosNotificacaoAula));
     this.unitOfWork                     = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
コード例 #5
0
 public ServicoFechamentoFinal(IRepositorioFechamentoTurmaDisciplina repositorioFechamentoTurmaDisciplina,
                               IRepositorioFechamentoTurma repositorioFechamentoTurma,
                               IRepositorioFechamentoAluno repositorioFechamentoAluno,
                               IRepositorioFechamentoNota repositorioFechamentoNota,
                               IRepositorioTipoCalendario repositorioTipoCalendario,
                               IRepositorioEvento repositorioEvento,
                               IServicoEol servicoEOL,
                               IServicoUsuario servicoUsuario,
                               IUnitOfWork unitOfWork,
                               IServicoLog servicoLog,
                               IMediator mediator)
 {
     this.repositorioFechamentoTurmaDisciplina = repositorioFechamentoTurmaDisciplina ?? throw new ArgumentNullException(nameof(repositorioFechamentoTurmaDisciplina));
     this.repositorioFechamentoTurma           = repositorioFechamentoTurma ?? throw new ArgumentNullException(nameof(repositorioFechamentoTurma));
     this.repositorioFechamentoAluno           = repositorioFechamentoAluno ?? throw new ArgumentNullException(nameof(repositorioFechamentoAluno));
     this.repositorioFechamentoNota            = repositorioFechamentoNota ?? throw new ArgumentNullException(nameof(repositorioFechamentoNota));
     this.repositorioTipoCalendario            = repositorioTipoCalendario ?? throw new ArgumentNullException(nameof(repositorioTipoCalendario));
     this.repositorioEvento = repositorioEvento ?? throw new ArgumentNullException(nameof(repositorioEvento));
     this.servicoEOL        = servicoEOL ?? throw new ArgumentNullException(nameof(servicoEOL));
     this.servicoUsuario    = servicoUsuario ?? throw new ArgumentNullException(nameof(servicoUsuario));
     this.unitOfWork        = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.servicoLog        = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.mediator          = mediator ?? throw new ArgumentNullException(nameof(mediator));
 }
コード例 #6
0
 public ServicoEOL(HttpClient httpClient, IRepositorioCache cache, IServicoLog servicoLog)
 {
     this.httpClient = httpClient;
     this.servicoLog = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.cache      = cache;
 }
コード例 #7
0
 public RepositorioCache(IDistributedCache distributedCache, IServicoLog servicoLog)
 {
     this.distributedCache = distributedCache ?? throw new System.ArgumentNullException(nameof(distributedCache));
     this.servicoLog       = servicoLog ?? throw new System.ArgumentNullException(nameof(servicoLog));
 }
コード例 #8
0
 public LogsController(IServicoLog servicoLog)
 {
     _servicoLog = servicoLog;
 }
コード例 #9
0
 public ServicoAcompanhamentoEscolar(HttpClient httpClient, IServicoLog servicoLog, IConfiguration configuration)
 {
     this.httpClient    = httpClient;
     this.servicoLog    = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
コード例 #10
0
 public ImportacaoController(IServicoLog servicoLog)
 {
     _servicoLog = servicoLog;
 }
コード例 #11
0
 public RepositorioCache(IServicoLog servicoLog, IMemoryCache memoryCache)
 {
     this.servicoLog  = servicoLog ?? throw new ArgumentNullException(nameof(servicoLog));
     this.memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
 }
コード例 #12
0
 public static void AdicionarRedis(this IServiceCollection services, IConfiguration configuration, IServicoLog servicoLog)
 {
     services.AddSingleton <IConnectionMultiplexerSME>(
         new ConnectionMultiplexerSME(configuration.GetConnectionString("SGP_Redis"), servicoLog));
 }