public TarefaController(IConfiguration configuration)
 {
     _tarefaGrpcService     = MagicOnionClient.Create <ITarefaGrpcService>(CreateAuthenticatedChannel(configuration["AppSettings:UrlCpnucleoGrpcTarefa"]));
     _sistemaGrpcService    = MagicOnionClient.Create <ISistemaGrpcService>(CreateAuthenticatedChannel(configuration["AppSettings:UrlCpnucleoGrpcSistema"]));
     _projetoGrpcService    = MagicOnionClient.Create <IProjetoGrpcService>(CreateAuthenticatedChannel(configuration["AppSettings:UrlCpnucleoGrpcProjeto"]));
     _workflowGrpcService   = MagicOnionClient.Create <IWorkflowGrpcService>(CreateAuthenticatedChannel(configuration["AppSettings:UrlCpnucleoGrpcWorkflow"]));
     _tipoTarefaGrpcService = MagicOnionClient.Create <ITipoTarefaGrpcService>(CreateAuthenticatedChannel(configuration["AppSettings:UrlCpnucleoGrpcTipoTarefa"]));
 }
Exemple #2
0
 public ProjetoController(IConfiguration configuration)
 {
     _projetoGrpcService = MagicOnionClient.Create <IProjetoGrpcService>(CreateAuthenticatedChannel(configuration["AppSettings:UrlCpnucleoGrpcProjeto"]));
     _sistemaGrpcService = MagicOnionClient.Create <ISistemaGrpcService>(CreateAuthenticatedChannel(configuration["AppSettings:UrlCpnucleoGrpcSistema"]));
 }