コード例 #1
0
        private void LaunchActionList(XElement xmlItem, Context context)
        {
            if (xmlItem != null && xmlItem.Element("actions") != null)
            {
                foreach (var action in xmlItem.Descendants("action").OrderBy(item => int.Parse(item.Attribute("order").Value)))
                {
                    IAction realAction = ActionScheduler.CreateOne(action, context);

                    if (realAction != null)
                    {
                        realAction.Execute(action.Descendants().First(), context, this._defaultConfiguration, this.CurrentSite, this._siteOwner);
                        System.Threading.Thread.Sleep(200);
                    }
                }
            }
        }