예제 #1
0
 /// <summary> Get the properties of the repository. </summary>
 /// <param name="cancellationToken"> The cancellation token to use. </param>
 /// <exception cref="RequestFailedException">Thrown when a failure is returned by the Container Registry service.</exception>
 public virtual Response <ContainerRepositoryProperties> GetProperties(CancellationToken cancellationToken = default)
 {
     using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ContainerRepository)}.{nameof(GetProperties)}");
     scope.Start();
     try
     {
         return(_restClient.GetProperties(Name, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }