Ejemplo n.º 1
0
 public virtual Response <AccessKeys> GetKeys(CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("EventHubAuthorizationRule.GetKeys");
     scope.Start();
     try
     {
         var response = _eventHubsRestClient.ListKeys(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
         return(response);
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }