예제 #1
0
        /// <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();
        }
예제 #2
0
 /// <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();
 }
예제 #3
0
        /// <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();
        }
예제 #4
0
 /// <summary>Wait for the client to connect. (Blocking)</summary>
 public void Connect()
 {
     ClientPipeStream.Connect();
     StartByteReader();
     RaisePipeConnected();
 }