Skip to content

Instantly share code, notes, and snippets.

@jbrechtel
Created May 11, 2009 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbrechtel/110074 to your computer and use it in GitHub Desktop.
Save jbrechtel/110074 to your computer and use it in GitHub Desktop.
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