User-defined functions can currently accept IFormatProvider and StringComparison parameters, along with the LogEventPropertyValues supplied via the expression.
The resolution logic is very basic, and only works if the "special" parameters are in the first position.
It would be great if LogEvent parameters can also be bound, and also, if NameResolver could supply additional (constant) values to bind to other arguments. Adding these things would provide a great opportunity to generalize how the expression compiler binds function parameters.
User-defined functions can currently accept
IFormatProvider
andStringComparison
parameters, along with theLogEventPropertyValue
s supplied via the expression.The resolution logic is very basic, and only works if the "special" parameters are in the first position.
It would be great if
LogEvent
parameters can also be bound, and also, ifNameResolver
could supply additional (constant) values to bind to other arguments. Adding these things would provide a great opportunity to generalize how the expression compiler binds function parameters.