private static bool IfMatchSysCause <T>(SystemMessage message, Action <Exception> handler) where T : ExceptionSystemMessage { return(PatternMatcher.Match <T>(message, m => handler(m.CausedByFailure))); }
private static bool IfMatchSys <T>(SystemMessage message, Action <T> handler) where T : class, SystemMessage { return(PatternMatcher.Match(message, handler)); }