示例#1
0
        public void AddAction(string actionName, string name, string url, PXPolicyResult policy)
        {
            Trace.TraceInformation("ADD ACTION " + actionName);
            PXActionContext context = new PXActionContext
            {
                Id             = Guid.NewGuid().ToString(),
                CreatedAt      = DateTimeOffset.Now,
                Name           = name,
                Key            = actionName,
                Url            = url,
                FilenamePrefix = ReplaceInvalidChars(name),
                PolicyInfo     = policy
            };

            context.WorkingDictory = Storage.NewTemp(context);
            ActionM.AddAndStart(context);
        }
示例#2
0
        public void RetryAction(string id)
        {
            var context = Storage.GetAction(id);

            ActionM.AddAndStart(context);
        }