忍者拦截

发布于 2024-09-07 06:12:49 字数 820 浏览 4 评论 0原文

我可以从什么dll中获得Intercept的扩展名? 我从 http://github.com/danielmarbach/ninject 添加了 Ninject.Extensions.Interception。扩展.拦截 那里没有运气。 有一些工作样本吗?

我需要的是制作一个拦截器,它将从 WcfClient 路径到 WcfServer 具有不同参数的不同函数,这样我就不必在 WcfServer 代码后面实现已经实现的函数。 因此,我已经实现的函数的签名是 -

public static T InvokeService<T>(MethodInfo MethodName, Type genericType, Type BlClass, params object[] ParamList)

它的作用是通过 BlClass 激活 Method 并向其发送 ParamList 。 我想制作一个拦截器,在寻址 WcfServer 端时动态填充参数。 但首先我如何才能访问 ninjectModule 中的 Intercept 扩展?
预先感谢您提供的任何帮助:)

ps 尝试过:

using Ninject.Extensions.Interception;

和:

using Ninject.Core;
using Ninject.Core.Interception;

from what dll can i get the extension of Intercept ?
I've added Ninject.Extensions.Interception from http://github.com/danielmarbach/ninject.extensions.interception
No luck there.
Is there some sample working ?

What I need is to make an interceptor that will path through from WcfClient to WcfServer a different functions with different parameters , that way I wouldn't have to implement already implemented functions behind the WcfServer code.
So the the signature of the function I've already implemented is -

public static T InvokeService<T>(MethodInfo MethodName, Type genericType, Type BlClass, params object[] ParamList)

What it does is activates the Method by BlClass and sends to it the ParamList .
I'd like to make an Interceptor that will dynamically fill the parameters while addressing the WcfServer side .
But first how can I get access to the Intercept extension in my ninjectModule?
Thanks in advance for any help you can provide :)

p.s. Tried out :

using Ninject.Extensions.Interception;

and:

using Ninject.Core;
using Ninject.Core.Interception;

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薆情海 2024-09-14 06:12:57

所有 ninject 项目都位于 http://github.com/ninject 下,

您可以找到最新的预构建二进制文件在我们的 CI 服务器上:CodeBetter.com。为了扩展拦截机制,需要引用Ninject.Extensions.Interception dll并实现IInterceptor接口或扩展SimpleInterceptor类。

-伊恩

All of the ninject projects are under http://github.com/ninject

You can find the latest pre-built binaries on our CI server at CodeBetter.com. In order to extend the interception mechanism, you need to reference the Ninject.Extensions.Interception dll and implement the IInterceptor interface or extend the SimpleInterceptor class.

-Ian

战皆罪 2024-09-14 06:12:56

Intercept() 方法位于 Ninject.Extensions.Interception.Infrastruct.Language 内。
我费了好大劲才找到它。

the intercept() Method is within Ninject.Extensions.Interception.Infrastructure.Language.
I had trouble myself to find it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文