public static IRegisterFunctions Register(IRegisterFunctions repository) { repository .Register <Iff>() ; return(repository); }
public void RegisterExpressions(IRegisterFunctions functionRegister) { EnsureArg.IsNotNull(functionRegister, nameof(functionRegister)); foreach (JmesPathFunction function in GetJmesPathFunctions()) { functionRegister.Register(function.Name, function); _logger.LogTrace($"Registered function '{function.GetType().Name}' with name '{function.Name}'"); } }