/// <summary> /// Register a filter function. /// A filter must be defined as a public static function that returns a string. /// </summary> /// <param name="filterMethod"></param> /// <param name="filterName"></param> public static void RegisterFilter(MethodInfo filterMethod, string filterName = null) { if (_engine == null) { return; } _engine.RegisterFilter(filterMethod, filterName); }