コード例 #1
0
 /// <summary>
 /// Puts the lease on the given container in a renewed state.
 /// </summary>
 /// <param name="container">The container with the lease.</param>
 /// <param name="leaseTime">The amount of time on the renewed lease.</param>
 /// <returns>The lease ID of the current lease.</returns>
 internal static string SetRenewedState(CloudBlobContainer container, TimeSpan? leaseTime)
 {
     string leaseId = SetLeasedState(container, leaseTime);
     container.RenewLease(AccessCondition.GenerateLeaseCondition(leaseId));
     return leaseId;
 }