public static void AddSynchronousProcessorHandler <T>(this IProcessor <T> processor, Action <T> action) { processor.AddProcessorHandler(t => { action(t); return(Task.FromResult(0)); }); }
public static void AddSynchronousProcessorHandler <T>(this IProcessor <T> processor, Action <T> action) { processor.AddProcessorHandler(t => { action(t); return(Task.FromResult(0)); }); }