Skip to content

danielmarbach/ninject.extensions.interception

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 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# 98.3%
  • Shell 1.7%