public X509Certificate2 GetPodCertificate()
 {
     try
     {
         return(_client.V1PodCertificateAsync(default(CancellationToken)).Result.ToX509Certificate());
     }
     catch (Exception e)
     {
         _log?.LogError(0, e, "An error has occured while trying to retrieve the pod certificate.");
         throw ApiException.CreateFromException(e);
     }
 }
Ejemplo n.º 2
0
 public ExtensionAppTokens StartExtensionAuthentication(string token)
 {
     try
     {
         var returnTokens = _client.V1ExtensionappAsync(new AuthenticateRequest()
         {
             AppToken = token
         }).Result;
         return(new ExtensionAppTokens(returnTokens));
     }
     catch (Exception e)
     {
         throw ApiException.CreateFromException(e);
     }
 }