Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Understanding WcfIISHost Class Library in a Project

$
0
0

Hi There;

I am investigating a web project and I have encountered a class library. Its name is "UnitName.SampleProject.WcfIISHost" and it only has two files, one is "CategoryService.svc" and "NinjectFileLessServiceHostFactory.cs". And weirdly, "CategoryService.svc" has only one row, as such: 

<%@ ServiceHost Language="C#" Debug="true" Service="UnitName.SampleProject.BusinessLayer.Concrete.ProductManagement.CategoryService" Factory="Ninject.Extensions.Wcf.NinjectServiceHostFactory" %>

and content of "NinjectFileLessServiceHostFactory.cs". is: 

public class NinjectFileLessServiceHostFactory : NinjectServiceHostFactory
{
  public NinjectFileLessServiceHostFactory()
  {
  var kernel = new StandardKernel(new BusinessModule());
  kernel.Bind<ServiceHost>().To<NinjectServiceHost>();
  SetKernel(kernel);
 }
}

There are a Wcf library and Wcf Console host libraries out there and I understand them. What could the purpose of this library?

Thanks in advance. 


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>