private HostConnection CreateConnection(string hostname, eApplicationType applicationType)
 {
     var address = new EndpointAddress(CommunicationSettings.GetServiceUrl(hostname, applicationType));
       var client = new ChannelFactory<INotificationService>(new BasicHttpBinding(), address);
       return new HostConnection(hostname, client);
 }
 public static string GetServiceUrl(string hostname, eApplicationType applicationType)
 {
     return @"http://" + hostname + @"/" + applicationType;
 }