Esempio n. 1
0
 public static Func <IServiceProvider, T, ValueTask> Add <T>(this Func <IServiceProvider, T, ValueTask> handler, Action <T> next)
 => handler.Add((_, t) => next(t));
Esempio n. 2
0
 public static Func <IServiceProvider, T, ValueTask> Add <T>(this Func <IServiceProvider, T, ValueTask> handler, Action <IServiceProvider, T> next)
 => handler.Add((services, t) =>
 {
     next(services, t);
     return(new ValueTask());
 });