title: SignalRv2 - Passing values to Hub
body: <p>Ill try my best to explain this. In my Hub code, i have instantiated the <strong>ConnectionMapping</strong> class. It was taken from here <a href="http://www.asp.net/signalr/overview/guide-to-the-api/mapping-users-to-connections#inmemory" rel="nofollow">http://www.asp.net/signalr/overview/guide-to-the-api/mapping-users-to-connections#inmemory</a> .</p>
  
  <p>This <strong>ConnectionMapping</strong> requires a unique key for its dictionary. I have a webform code-behind called default.aspx.cs. In this code behind, I will get a unique Login Username inside the  <strong>Page_Load</strong> event. How do i pass this username to the Hub to add it to the <strong>ConnectionMapping</strong>?</p>
  
  <p>I tried.</p>
  
  <pre><code>IHubContext hubContext = GlobalHost.ConnectionManager.GetHubContext&lt;MyHub&gt;();
  </code></pre>
  
  <p>But i dont know what im doing after doing this. Help.</p>