/// <summary>
        /// Initialises the client connection.
        /// </summary>
        private void InitialiseClient()
        {
            if ((client != null) && (client.State != CommunicationState.Opened))
            {
                Dispose();
            }

            if (client == null)
            {
                client = new CruiseControlContractClient(new BasicHttpBinding(),
                    new EndpointAddress(serverAddress));
                client.Open();
            }
        }
 /// <summary>
 /// Disposes the .NET remoting client.
 /// </summary>
 public virtual void Dispose()
 {
     if (client != null)
     {
         client.Close();
         client = null;
     }
 }