예제 #1
0
 public static IPage GetRecycleBin(this IModelProvider modelProvider)
 {
     if (modelProvider == null)
     {
         throw new ArgumentNullException("modelProvider");
     }
     return(modelProvider.GetPage(Const.RecycleBinPage));
 }
예제 #2
0
        public ExecutionResult RunPage(IModelProvider modelProvider, string pageIdentifier, string resultDataIdentifier)
        {
            var result = RunPage(modelProvider.GetPage(pageIdentifier).Content);

/*
 *                      if (resultDataIdentifier != null)
 *                      {
 *                              storage.SetData(resultDataIdentifier, result.Serialize());
 *                      }
 */

            modelProvider.SetData(Const.GlobalPageResultGraphPrefix + pageIdentifier, result.Serialize());
            if (result.Page != null)
            {
                modelProvider.SetData(Const.GlobalPageResultSimplePrefix + pageIdentifier, result.Page.ResultState.ToString());
            }

            return(result);
        }