Skip to content

About

Interception extension for Ninject

Resources

Stars

58 stars

Watchers

9 watching

Forks

Latest commit

 

History

218 Commits

Folders and files

Repository files navigation

Ninject.Extensions.Interception

Build status codecov NuGet Version NuGet Download

This extension adds support for interception to Ninject.

For example, the WCF client proxy can be intercepted as below.

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

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

kernel.Bind<IFooService>()
    .ToMethod(context => ChannelFactory<IFooService>.CreateChannel("*"))
    .Intercept(typeof(ICommunicationObject))
    .With(interceptor);

About

Interception extension for Ninject

Resources

Stars

58 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages