コード例 #1
0
 //Get con parametros sin volver a obtener el token por que esta en cache
 static async Task <string> Peticion(Dictionary <string, string> parametros, IPeticionesServicios peticion)
 {
     try
     {
         return(await peticion.GetAsync <string>(parametros));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 //Get sin parametros
 static async Task <string[]> Peticion(IPeticionesServicios peticion)
 {
     try
     {
         return(await peticion.GetAsync <string[]>());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }