【问题标题】:How can I get the type name to log along with the method name with a Castle interceptor?如何使用 Castle 拦截器获取要记录的类型名称以及方法名称?
【发布时间】:2014-07-30 04:52:36
【问题描述】:

有没有办法让我使用Castle 拦截器获取该方法所属的类型?

【问题讨论】:

  • 我想我应该仔细看看。

标签: castle-windsor castle castle-dynamicproxy


【解决方案1】:
string targetTypeName = invocation.TargetType.FullName;

【讨论】:

    猜你喜欢
    • 2017-09-05
    • 1970-01-01
    • 1970-01-01
    • 2022-01-03
    • 2019-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多