/// <summary> /// Creates a handler which will return the second handler once the first one is finished. /// </summary> public static IMouseHandler ContinueWith(this IMouseHandler handler, IMouseHandler nextHandler) { return(handler.ContinueWith(_ => nextHandler)); }
/// <summary> /// Calls the given action once the handler is finished. /// </summary> public static IMouseHandler EndWith(this IMouseHandler handler, Action <MouseNotification> action) { return(handler.ContinueWith(arg => { action(arg); return null; })); }