/// <summary>Wait for the client to connect</summary> /// <param name="timeout">Timeout in milliseconds</param> /// <returns>A task that represents the asynchronous connect operation.</returns> public async Task ConnectAsync(int timeout) { await ClientPipeStream.ConnectAsync(timeout); ClientConnected(); }
/// <summary>Wait for the client to connect given a timeout. (Blocking)</summary> /// <param name="timeout">Timeout in milliseconds</param> /// <exception cref="TimeoutException">Raised when the connection times out</exception> public void Connect(int timeout) { ClientPipeStream.Connect(timeout); ClientConnected(); }
/// <summary>Wait for the client to connect</summary> /// <returns>A task that represents the asynchronous connect operation.</returns> public async Task ConnectAsync() { await ClientPipeStream.ConnectAsync(); ClientConnected(); }
/// <summary>Wait for the client to connect. (Blocking)</summary> public void Connect() { ClientPipeStream.Connect(); StartByteReader(); RaisePipeConnected(); }