/// <summary> /// Creates a new <see cref="Client"/> object instance configured to connect to a remotely hosted tor application executable. /// </summary> /// <param name="remoateParams">The parameters used when connecting to the client.</param> /// <returns>A <see cref="Client"/> object instance.</returns> public static Client CreateForRemote(ClientRemoteParams remoteParams) { if (remoteParams == null) { throw new ArgumentNullException("remoteParams"); } return(new Client(remoteParams)); }
/// <summary> /// Initializes a new instance of the <see cref="Client"/> class. /// </summary> /// <param name="remoateParams">The parameters used when connecting to the client.</param> private Client(ClientRemoteParams remoteParams) { this.createParams = null; this.disposed = false; this.process = null; this.remoteParams = remoteParams; this.synchronize = new object(); this.Start(); }