Esempio n. 1
0
 public Task ProcessAsync(BasicRoutingContext <IntWrapper> context)
 {
     context.Data.Int++;
     context.Continue();
     return(Task.CompletedTask);
 }
 public bool IsEligible(BasicRoutingContext <IntWrapper> context) => true;
Esempio n. 3
0
 public bool IsEligible(BasicRoutingContext <IntWrapper> context) => context.Data.Int < 10;
 public Task ProcessAsync(BasicRoutingContext <IntWrapper> context)
 {
     context.Break();
     return(Task.CompletedTask);
 }