title: Cannot implicitly convert type 'System.Threading.Tasks.Task<object>' to 'string' in SignalR
body: <p>I am new in SignalR .</p>
  
  <p>my project is that bringing up sql change  on signalR and sql dependency .</p>
  
  <p>This is sample code that used <a href="http://www.c-sharpcorner.com/UploadFile/raj1979/broadcast-sql-data-using-signalr-in-Asp-Net/" rel="noreferrer">C# corner</a></p>
  
  <p>Every thing is ok but i get exception through this code  </p>
  
  <p><img src="https://i.stack.imgur.com/t7tSj.png" alt="enter image description here"></p>
  
  <pre><code>         using (var connection = new SqlConnection("Server=.;Database=fidilio;Trusted_Connection=True;"))
          {
              const string query = "SELECT Count(*) FROM [dbo].[MemberComment]";
  
              connection.Open();
              using (var command = new SqlCommand(query, connection))
              {                  
                  command.Notification = null;                
                  var dt = new DataTable();
                  var dependency = new SqlDependency(command);
                  dependency.OnChange += dependency_OnChange;
                  if (connection.State == ConnectionState.Closed)
                      connection.Open();                
                  var reader = command.ExecuteScalar();
  
                  commentCount = Int16.Parse((reader.ToString()));
              }  
          }
          var context = GlobalHost.ConnectionManager.GetHubContext&lt;NotficationHub&gt;();
  
          return context.Clients.All.RecevieNotification(commentCount);
  </code></pre>
  
  <p>Is there any idea ?</p>