public async virtual Task <Response <AccessKeys> > GetKeysAsync(CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NamespaceAuthorizationRule.GetKeys"); scope.Start(); try { var response = await _namespacesRestClient.ListKeysAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); return(response); } catch (Exception e) { scope.Failed(e); throw; } }