开发者

Ninject Intercept

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;


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜