WCF: Retrieving MethodInfo from OperationContext

后端 未结 4 1431
猫巷女王i
猫巷女王i 2020-12-13 07:20

Is there an elegant way to get the method that will be executed on a service instance from MessageInspector/AuthorizationPolicy/some other extension point? I could use

4条回答
  •  我在风中等你
    2020-12-13 08:04

    Castle WCF integration facility enables you to do just that (among many useful things) by using DynamicProxy proxies. Take a look here.

    There's not much documentation on it, so for docs on how to use it it's best to take a look at its tests.

提交回复
热议问题