Skip to content

khorvat/ninject.extensions.interception

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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(typeof(ICommunicationObject))
	    .With(interceptor);

About

Interception extension for Ninject hacked to allow async/await Interception

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.6%
  • Shell 1.4%