Skip to content

ursenzler/ninject.extensions.interception

 
 

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<IFooService>()
    .ToMethod(context => ChannelFactory<IFooService>.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.4%
  • Shell 1.6%