コード例 #1
0
        public static InformationSourceCollection GetInformationSources(string targetLocation)
        {
            string blobPath = InformationSourceCollection.GetRelativeLocationAsMetadataTo(targetLocation);
            var    result   = StorageSupport.RetrieveInformation(blobPath, typeof(InformationSourceCollection));

            return((InformationSourceCollection)result);
        }
コード例 #2
0
 public static void SetInformationSources(string targetLocation, InformationSourceCollection sourceCollection)
 {
     if (sourceCollection == null)
     {
         // Delete existing
         string    blobPath = InformationSourceCollection.GetRelativeLocationAsMetadataTo(targetLocation);
         CloudBlob blob     = StorageSupport.CurrActiveContainer.GetBlobReference(blobPath);
         blob.DeleteWithoutFiringSubscriptions();
         return;
     }
     sourceCollection.SetRelativeLocationAsMetadataTo(targetLocation);
     StorageSupport.StoreInformation(sourceCollection);
 }
コード例 #3
0
        public static void DeleteInformationSources(string targetLocation)
        {
            string blobPath = InformationSourceCollection.GetRelativeLocationAsMetadataTo(targetLocation);

            StorageSupport.DeleteBlob(blobPath);
        }