public async Task ProcessLineAsync(IAgentLogPluginContext context, Pipelines.TaskStepDefinitionReference step, string line)
 {
     if (_counter++ < 1)
     {
         context.Output("SLOW");
         await Task.Delay(400);
     }
     else
     {
         context.Output(line);
     }
 }
 public Task ProcessLineAsync(IAgentLogPluginContext context, Pipelines.TaskStepDefinitionReference step, string line)
 {
     if (context.Variables.ContainsKey("throw_process"))
     {
         throw new NotSupportedException();
     }
     else
     {
         context.Output(line);
         return(Task.CompletedTask);
     }
 }
 public Task FinalizeAsync(IAgentLogPluginContext context)
 {
     if (context.Variables.ContainsKey("throw_finalize"))
     {
         throw new NotSupportedException();
     }
     else
     {
         context.Output("Done");
         return(Task.CompletedTask);
     }
 }
 public Task FinalizeAsync(IAgentLogPluginContext context)
 {
     context.Output("Done");
     return(Task.CompletedTask);
 }
 public Task ProcessLineAsync(IAgentLogPluginContext context, Pipelines.TaskStepDefinitionReference step, string line)
 {
     context.Output(line);
     return(Task.CompletedTask);
 }
 public async Task ProcessLineAsync(IAgentLogPluginContext context, Pipelines.TaskStepDefinitionReference step, string line)
 {
     context.Output("BLOCK");
     await Task.Delay(TimeSpan.FromMilliseconds(-1));
 }
Exemplo n.º 7
0
 public override void WriteLine(string message)
 {
     _context.Output(message);
 }