Closed
Description
User-defined functions can currently accept IFormatProvider
and StringComparison
parameters, along with the LogEventPropertyValue
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, 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.