/// <summary> /// Start nested batch action /// </summary> /// <param name="batchName">Batch name</param> /// <param name="actionName">Action name</param> /// <param name="context">The <see cref="BatchExecutionContext"/> context</param> /// <returns></returns> public Task startBatch(string batchName, string actionName, BatchExecutionContext context) { BatchUrlManager urlManager = new BatchUrlManager(batchName, actionName); var contextInvoker = ContextInvoker.Create(context.RequestServices, context.Request, context.Response); return(_batchHandler.InvokeAsync(contextInvoker, urlManager)); }
/// <summary> /// Start nested batch action. /// </summary> /// <param name="batchName">Batch name</param> /// <param name="actionName">Action name</param> /// <param name="context">The <see cref="ContextInvoker"/> context</param> /// <returns>Return a <see cref="Task"/></returns> public Task startBatch(string batchName, string actionName, ContextInvoker context) { BatchUrlManager urlManager = new BatchUrlManager(batchName, actionName); return(_batchHandler.InvokeAsync(context, urlManager)); }