public static Func <IServiceProvider, T, ValueTask> Add <T>(this Func <IServiceProvider, T, ValueTask> handler, Action <T> next) => handler.Add((_, t) => next(t));
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()); });