public IAsyncResult BeginConnection(AsyncCallback connectionCallback)
 {
     _connectionAsyncResult = new ConnectionAsyncResult(_connection, connectionCallback);
     // TODO: Pass the result to DoBeginConnection and ReadCallback instead of storing it in a field
     DoBeginConnection();
     return(_connectionAsyncResult);
 }
 public IAsyncResult BeginConnection(AsyncCallback connectionCallback)
 {
     _connectionAsyncResult = new ConnectionAsyncResult(_connection, connectionCallback);
     // TODO: Pass the result to DoBeginConnection and ReadCallback instead of storing it in a field
     DoBeginConnection();
     return _connectionAsyncResult;
 }