Skip to content

giulianob/ninject.extensions.interception

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChannelProxies can be intercepted now:

[ServiceContract]
public interface IFooService
{
    [OperationContract]
    void Foodo();
}

ActionInterceptor interceptor = new ActionInterceptor( invocation => Console.WriteLine("Executing {0}.", invocation.Request.Method) );

kernel.Bind() .ToMethod(context => ChannelFactory.CreateChannel(new NetTcpBinding(), new EndpointAddress("net.tcp://localhost/FooService"))) .Intercept() .With(interceptor);

About

Interception extension for Ninject

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%