Exemple #1
0
 public void SetWebsiteTitle(string title)
 {
     using (var writer = websiteService.CreateWriter())
     {
         writer.Resource.Title = title;
     }
 }
Exemple #2
0
 public void SaveGlobalContent(string id, string content)
 {
     using (var writer = websiteService.CreateWriter())
     {
         writer.Resource.SetContent(id, content);
     }
 }
Exemple #3
0
        public static void UpdatePage(this IWebsiteService websiteService, string path, Action <Page> update)
        {
            if (websiteService == null)
            {
                throw new ArgumentNullException("websiteService");
            }
            if (update == null)
            {
                throw new ArgumentNullException("update");
            }

            using (var writer = websiteService.CreateWriter())
            {
                update(writer.Resource.FindPage(path));
            }
        }