Skip to content

Configure wcf service library

remogloor edited this page Mar 6, 2013 · 2 revisions

First you have to create a new class NinjectFileLessServiceHostFactory that creates and initializes the kernel:

```text
public class NinjectFileLessServiceHostFactory : NinjectServiceHostFactory
{
    public NinjectFileLessServiceHostFactory()
    {
        var kernel = new StandardKernel(new ServiceModule());
        kernel.Bind().To();
        SetKernel(kernel);
    }
}
```

Then extend the App.Config by adding the following configuration to the system.serviceModel configuration:

```text

	
		
	

```