Exemplo n.º 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();
        }
Exemplo n.º 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();
 }
Exemplo n.º 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();
        }
Exemplo n.º 4
0
 /// <summary>Wait for the client to connect. (Blocking)</summary>
 public void Connect()
 {
     ClientPipeStream.Connect();
     StartByteReader();
     RaisePipeConnected();
 }