public TaskExecutionContext( ITaskStore taskStore, HttpContext httpContext, IComponentContext componentContext, TaskExecutionInfo originalExecutionInfo) { Guard.NotNull(taskStore, nameof(taskStore)); Guard.NotNull(httpContext, nameof(httpContext)); Guard.NotNull(componentContext, nameof(componentContext)); Guard.NotNull(originalExecutionInfo, nameof(originalExecutionInfo)); _componentContext = componentContext; _originalExecutionInfo = originalExecutionInfo; HttpContext = httpContext; Parameters = httpContext.Request.Query; TaskStore = taskStore; ExecutionInfo = _originalExecutionInfo.Clone(); }
public TaskExecutionContext( ITaskStore taskStore, HttpContext httpContext, IComponentContext componentContext, TaskExecutionInfo originalExecutionInfo, IDictionary <string, string> taskParameters = null) { Guard.NotNull(taskStore, nameof(taskStore)); Guard.NotNull(httpContext, nameof(httpContext)); Guard.NotNull(componentContext, nameof(componentContext)); Guard.NotNull(originalExecutionInfo, nameof(originalExecutionInfo)); _componentContext = componentContext; _originalExecutionInfo = originalExecutionInfo; HttpContext = httpContext; Parameters = taskParameters ?? new Dictionary <string, string>(); TaskStore = taskStore; ExecutionInfo = _originalExecutionInfo.Clone(); }