Пример #1
0
 /// <summary>
 /// Puts the lease on the given container in a released state.
 /// </summary>
 /// <param name="container">The container with the lease.</param>
 /// <param name="leaseTime">The amount of time on the released lease.</param>
 /// <returns>The lease ID of the released lease.</returns>
 internal static string SetReleasedState(CloudBlobContainer container, TimeSpan? leaseTime)
 {
     string leaseId = SetLeasedState(container, leaseTime);
     container.ReleaseLease(AccessCondition.GenerateLeaseCondition(leaseId));
     return leaseId;
 }