문제

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;
도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top