public NetworkAddressChangedListener(IConnectionLostListener connectionLostListener, ConnectionCredentials credentials)
        {
            if (connectionLostListener == null)
            {
                throw new ArgumentNullException("connectionLostListener");
            }
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            _connectionLostListener = connectionLostListener;
            _credentials            = credentials;

            //NetworkChange.NetworkAddressChanged += NetworkAddressChanged;
            //NetworkChange.NetworkAvailabilityChanged += NetworkAvailabilityChanged;
        }
 public HttpPilotClient(ConnectionCredentials credentials, IMarshallingFactory factory)
     : this(factory)
 {
     Connect(credentials);
 }
 public void Connect(ConnectionCredentials credentials)
 {
     Connect(credentials.GetConnectionString());
 }
 /// <summary>
 /// Init new HttpPilotClient instance with Marshalling factory as default.
 /// Connect with specified credentials to server
 /// </summary>
 /// <param name="credentials"></param>
 public HttpPilotClient(ConnectionCredentials credentials)
     : this(credentials, new MarshallingFactory())
 {
 }