protected NotificationClientBase(HostnameAccessor hostnameAccessor)
        {
            this.hostnameAccessor = hostnameAccessor;
              UpdateHostConnections();

              if (RequiresExclusivity)
              {
            Register(ApplicationId);
              }
        }
 // Overriding of the Url structure is used by tests
 protected NotificationClientBase(string hostname)
 {
     hostnameAccessor = new HostnameAccessor();
       hosts = new List<HostConnection> { CreateConnection(hostname, eApplicationType.aPCTest) };
 }