Created
May 11, 2009 18:06
-
-
Save jbrechtel/110074 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.ServiceModel.Activation; | |
using System.ServiceModel; | |
namespace CMWeb.Common | |
{ | |
public class CMServiceHostFactory : ServiceHostFactory | |
{ | |
protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) | |
{ | |
return new CustomHost(serviceType,baseAddresses[0]); | |
} | |
} | |
public class CustomHost : ServiceHost | |
{ | |
public CustomHost(Type serviceType, params Uri[] serviceAddresses) | |
:base(serviceType,serviceAddresses) | |
{ | |
} | |
protected override void ApplyConfiguration() | |
{ | |
base.ApplyConfiguration(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment