Пример #1
0
 private static CloudBlob processEmbeddedContent(EmbeddedContent embedded, string targetContentRootLocation, Dictionary<string, string> categoryMap, CategoryCollection targetCategoryCollection, string processID)
 {
     var owner = InformationContext.CurrentOwner;
     var sourceCategories = embedded.Categories;
     var targetItemCategories = GetTargetItemCategories(sourceCategories, targetCategoryCollection, categoryMap);
     embedded.Categories = targetItemCategories;
     embedded.RelativeLocation = StorageSupport.GetOwnerContentLocation(owner,
                                                                           string.Format("{0}AaltoGlobalImpact.OIP/EmbeddedContent/{1}", targetContentRootLocation, embedded.ID));
     embedded.GeneratedByProcessID = processID;
     if (embedded.Locations != null)
         embedded.Locations.CollectionContent.ForEach(location => location.FixCurrentOwnerLocation());
     var storedBlob = embedded.StoreInformationMasterFirst(owner, true, overwriteIfExists: true);
     return storedBlob;
 }