Inheritance: System.ServiceModel.Activation.ServiceHostFactory
Exemplo n.º 1
0
        private void Application_Start(object sender, EventArgs e)
        {
            var factory = new WindsorServiceHostFactory<RestServiceModel>(Container.Kernel);

            RouteTable.Routes.Add(new ServiceRoute("nonfacility_2011d",
                factory,
                typeof(ICmsFssNonFacility2011d)));
            RouteTable.Routes.Add(new ServiceRoute("facility_2011d",
                factory,
                typeof(ICmsFssFacility2011d)));
            RouteTable.Routes.Add(new ServiceRoute("nonfacility_2012a",
                factory,
                typeof(ICmsFssNonFacility2012a)));
            RouteTable.Routes.Add(new ServiceRoute("facility_2012a",
                factory,
                typeof(ICmsFssFacility2012a)));
        }