Ejemplo n.º 1
0
        public static InformationSourceCollection GetInformationSources(string targetLocation)
        {
            string blobPath = InformationSourceCollection.GetRelativeLocationAsMetadataTo(targetLocation);
            var    result   = StorageSupport.RetrieveInformation(blobPath, typeof(InformationSourceCollection));

            return((InformationSourceCollection)result);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
        public static void DeleteInformationSources(string targetLocation)
        {
            string blobPath = InformationSourceCollection.GetRelativeLocationAsMetadataTo(targetLocation);

            StorageSupport.DeleteBlob(blobPath);
        }