title: "...because this call is not awaited"
body: <pre><code>using System;
  using System.Net.Sockets;
  using System.Threading.Tasks;
  
  namespace Rohan.Gateway
  {
      public class Player
      {
          private PlayerSocket _mapSocket;
          private PlayerSocket _clientSocket;
  
          public int _characterId = -1;
          public int _characterType = -1;
          public string _characterName = "";
          public int _playerId = -1;
          public string _dumpFolder = "";
          public int _packetIndex;
  
          public PlayerSocket mapSocket
          {
              get { return this._mapSocket; }
          }
  
          public PlayerSocket clientSocket
          {
              get { return this._clientSocket; }
          }
  
          public bool isConnected
          {
              get { return this._mapSocket.isConnected &amp;&amp; this._clientSocket.isConnected; }
          }
  
          public Player(Socket clientSocket)
          {
              this._clientSocket = new PlayerSocket(clientSocket, this, PlayerSocketType.Client);
              Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
              socket.Connect(TCPListenerEx.remoteAddress, 22100);
              this._mapSocket = new PlayerSocket(socket, this, PlayerSocketType.MapServer);
              this.ValidateConnection();
          }
  
          public bool ValidateConnection()
          {
              if (!this.isConnected)
              {
                  this.Disconnect();
                  return false;
              }
  
              return true;
          }
  
          public void Disconnect()
          {
              this._mapSocket.Disconnect();
              this._clientSocket.Disconnect();
          }
  
          public void ReceiveClientData()
          {
              if (this.ValidateConnection())
              {
                  this._clientSocket.ReceiveAsync();
              }
          }
  
          public void DispatchClientData()
          {
              if (this.ValidateConnection())
              {
                  this._mapSocket.SendAsync(this._clientSocket.reader);
              }
          }
  
          public void ReceiveMapserverData()
          {
              if (this.ValidateConnection())
              {
                  this._mapSocket.ReceiveAsync();
              }
          }
  
          public void DispatchMapserverData()
          {
              if (this.ValidateConnection())
              {
                  this._clientSocket.SendAsync(this._mapSocket.reader);
              }
          }
      }
  }
  </code></pre>
  
  <p>On the lines below, I get this warning </p>
  
  <blockquote>
    <p>because this call is not awaited</p>
  </blockquote>
  
  <pre><code>public void ReceiveClientData()
  {
      if (this.ValidateConnection())
      {
          this._clientSocket.ReceiveAsync();
      }
  }
  
  public void DispatchClientData()
  {
      if (this.ValidateConnection())
      {
          this._mapSocket.SendAsync(this._clientSocket.reader);
      }
  }
  
  public void ReceiveMapserverData()
  {
      if (this.ValidateConnection())
      {
          this._mapSocket.ReceiveAsync();
      }
  }
  
  public void DispatchMapserverData()
  {
      if (this.ValidateConnection())
      {
          this._clientSocket.SendAsync(this._mapSocket.reader);
      }
  }
  </code></pre>
  
  <p>Why am I getting this error?</p>