title: Azure Storage Table ExecuteQuerySegmentedAsync Call Error in Extension Method
body: <p>The below extension method won't compile in my ASP.NET Core project and Visual Studio highlights the method ExecuteQuerySegmentedAsync as the problem. The error (below the code) is citing a method signature I don't want. I want this one <a href="https://msdn.microsoft.com/en-us/library/azure/dn434804.aspx" rel="nofollow">here</a>.</p>
  
  <pre><code>internal static class CloudTableExtensions
  {
          public static async Task&lt;IList&lt;DynamicTableEntity&gt;&gt; ExecuteQueryAsync(this CloudTable table,
              TableQuery query, CancellationToken cancellationToken = default(CancellationToken))
      {
          var items = new List&lt;DynamicTableEntity&gt;();
          TableContinuationToken token = null;
          do
          {
              var seg = await table.ExecuteQuerySegmentedAsync(query, token, cancellationToken);
  
              token = seg.ContinuationToken;
              items.AddRange(seg);
  
  
          } while (token != null &amp;&amp; !cancellationToken.IsCancellationRequested 
               &amp;&amp; (query.TakeCount == null || items.Count &lt; query.TakeCount.Value));
  
  
          return items;
      }
  }
  </code></pre>
  
  <p><strong>The error is:</strong>
  <code>Error  CS0411  The type arguments for method 'CloudTable.ExecuteQuerySegmentedAsync&lt;T, TResult&gt;(TableQuery&lt;T&gt;, EntityResolver&lt;TResult&gt;, TableContinuationToken)' cannot be inferred from the usage. Try specifying the type arguments explicitly.</code></p>