Esempio n. 1
0
 public Middleware(Action <Req, Res, Middleware> action, Middleware next)
 {
     this.action         = action;
     this.NextMiddleware = next;
 }
Esempio n. 2
0
 public void setMiddleware(Middleware value)  
 {
     this.last = value;
 }
Esempio n. 3
0
 public async void Exec(Req req, Res res, Middleware middle)
 {
     System.Console.WriteLine("1 middleware");
     middle.Next(req, res);
 }