NServiceBus.DefaultScheduler.Start C# (CSharp) Method

Start() public method

public Start ( System.Guid taskId, IPipelineContext context ) : System.Threading.Tasks.Task
taskId System.Guid
context IPipelineContext
return System.Threading.Tasks.Task
        public async Task Start(Guid taskId, IPipelineContext context)
        {
            TaskDefinition taskDefinition;

            if (!scheduledTasks.TryGetValue(taskId, out taskDefinition))
            {
                logger.InfoFormat("Could not find any scheduled task with id {0}. The DefaultScheduler does not persist tasks between restarts.", taskId);
                return;
            }

            await DeferTask(taskDefinition, context).ConfigureAwait(false);
            await ExecuteTask(taskDefinition, context).ConfigureAwait(false);
        }