/// <summary> /// Creates and initializes a service host for use with this listener /// </summary> /// <returns></returns> protected override ICommunicationObject CreateCommunicationObject() { return(WcfServiceHostFactory.CreateHost(Runtime, Endpoint.ContractType, CreateServiceImplementationType(), Endpoint.ConfigurationName, Endpoint.Address)); }
/// <summary> /// Gets the type that should be hosted by the ServiceHost /// </summary> /// <returns></returns> protected virtual Type CreateServiceImplementationType() { Type hostType = WcfServiceHostFactory.CreateImplementationType(Endpoint.ContractType); return(hostType); }