/// <summary>
        /// Set Result after reading using current scope in Pipeline results
        /// </summary>
        /// <param name="arguments"></param>
        public override void Process(CreateArgs arguments)
        {
            Assert.ArgumentNotNull(arguments, "arguments");
            if (arguments.Result != null)
            {
                return;
            }
            ReadArgs readArgs = new ReadArgs(arguments.Scope);

            CorePipeline.Run("itemWebApiRead", readArgs);
            arguments.Result = readArgs.Result;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Function which process the CreateArgs and initiate the Private CreateNewItem Function
 /// </summary>
 /// <param name="arguments">Create Arguments</param>
 public override void Process(CreateArgs arguments)
 {
     Assert.ArgumentNotNull(arguments, "arguments");
     List<Item> list = new List<Item>(arguments.Scope.Length);
     Item[] scope = arguments.Scope;
     for (int i = 0; i < scope.Length; i++)
     {
         Item parent = scope[i];
         Item item = CreateItem.CreateNewItem(parent, arguments.Loadoptions, arguments.Syncitem, arguments.Context);
         if (item != null)
         {
             list.Add(item);
         }
     }
     arguments.Scope = list.ToArray();
 }