Exemple #1
0
        public Guid RunWebTask(Func <IWebTaskActionContext, WebTaskResult> action, WebTaskConfiguration configuration)
        {
            WebTask webTask = WebTaskFactory.CreateWebTask(configuration);

            RunWebTaskWithContext(action, webTask);

            return(webTask.Id);
        }
Exemple #2
0
        public Guid RunWebTask(Func <WebTaskResult> action)
        {
            WebTask webTask = WebTaskFactory.CreateWebTaskWithDefaultConfiguration();

            RunWebTaskWithoutContext(action, webTask);

            return(webTask.Id);
        }