Esempio n. 1
0
 public virtual Response <LeaseContainerResponse> Lease(LeaseContainerRequest parameters = null, CancellationToken cancellationToken = default)
 {
     using var scope = _blobContainerClientDiagnostics.CreateScope("BlobContainer.Lease");
     scope.Start();
     try
     {
         var response = _blobContainerRestClient.Lease(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, parameters, cancellationToken);
         return(response);
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }