Пример #1
0
        public static ResourceSet MakeRelativeTo(this ResourceSet set, Uri source)
        {
            var sansHost             = set.ToString().Replace(source.ToString(), "");
            var sansResourceSetsPath = sansHost.Replace(ResourceSyncDocument.UriPartNames.ResourceSets + "/", "");

            return(sansResourceSetsPath);
        }
Пример #2
0
 public static Uri ToPutUri(this ResourceSet set, ResourceName name)
 {
     return(ToPutUri(set.ToString(), name.ToString()));
 }
Пример #3
0
 public static ResourceSyncDocument.RequestDescriptor ToSyncRequest(this ResourceSet set)
 {
     return(set.ToString().ToSyncRequest());
 }
Пример #4
0
 public static Uri ToPutUri(this ResourceSet set)
 {
     return(ToPutUri(set.ToString()));
 }