Are there any plans to extend interceptors (or introduce a related feature) to support delegate invocation? #10255
Answered
by
CyrusNajmabadi
payambordbar
asked this question in
General
|
Hi, I was wondering whether there are any plans to extend interceptors (or introduce a related feature) to support delegate invocation. For example: Func<int> f = Foo;
var result = f();Currently, interceptors apply to explicit method call sites, but not to delegate invocations. Is support for delegate invocation something that has been considered, or is it intentionally out of scope? If it's out of scope, could you share the reasoning behind that decision? Thanks! |
Answered by
CyrusNajmabadi
Jul 2, 2026
Replies: 1 comment 1 reply
|
It has not been considered. It's not out of scope. I think it would be fine, as long as the same rules apply (like the delegate 'Invoke' signature needing to match the interceptor signature). |
1 reply
Answer selected by
payambordbar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It has not been considered. It's not out of scope. I think it would be fine, as long as the same rules apply (like the delegate 'Invoke' signature needing to match the interceptor signature).