public void BlobHasEtag()
 {
     BlobStorage.PutBlob(ContainerName, BlobName, 1);
     Assert.IsNotNull(BlobStorage.GetBlobEtag(ContainerName, BlobName), "#A00");
 }
Esempio n. 2
0
 public static string GetBlobEtag(this IBlobStorageProvider provider, IBlobLocation location)
 {
     return(provider.GetBlobEtag(location.ContainerName, location.Path));
 }
Esempio n. 3
0
 /// <summary>
 /// Reset the update status to the currently available version,
 /// such that <see cref="CheckUpdate"/> does not cause an update to happen.
 /// </summary>
 public void ResetUpdateStatus()
 {
     _lastPackageEtag       = _blobs.GetBlobEtag(ContainerName, PackageBlobName);
     _lastConfigurationEtag = _blobs.GetBlobEtag(ContainerName, ConfigurationBlobName);
     _lastPackageCheck      = DateTimeOffset.UtcNow;
 }