title: SignalR Client with Multiple Parameters
body: <p>I'm new to stackoverflow and has been a lurker for many years and has been a great help for me as a developer. Many thanks.</p>
  
  <p>Ending my introduction with this very first post and question:</p>
  
  <p><strong>The Scenario:</strong></p>
  
  <p>I'm working with SignalR. </p>
  
  <p>I have a SignalR server that broadcast a message to all the clients with 6 parameters.</p>
  
  <p>When I implement it in a Web Client (MVC) it works fine and I can get all those 6 parameters. </p>
  
  <p>I tried implementing it in Xamarin.</p>
  
  <p>Here is the sample proxy snippet:</p>
  
  <pre><code>proxy.On&lt;string, string, string , string, string, string&gt;("test", (test1, test2, test3, test4, test5, test6) =&gt;
              {
                  MyActivity.RunOnUiThread(() =&gt;
                  {
                      //my method here
                  });
              });
  </code></pre>
  
  <p>When I have 6 parameters I'll get this error:</p>
  
  <p><strong>'IHubProxy' does not contain a definition for 'On' and no extension method 'On' accepting a first argument of type 'IHubProxy' could be found (are you missing a using directive or an assembly reference?)</strong></p>
  
  <p>But when I changed my parameters to 4</p>
  
  <pre><code>proxy.On&lt;string, string, string , string&gt;("test", (test1, test2, test3, test4) =&gt;
          {
              MyActivity.RunOnUiThread(() =&gt;
              {
                  //my method here
              });
          });
  </code></pre>
  
  <p>I would not get an error and I will be able to get those 4 params. But In my application I need to get all those 6 params.</p>
  
  <p>Why is it that whenever I have more than 4 params I get this error?</p>
  
  <p>Am I missing something?</p>
  
  <p>Thanks!</p>