title: Adding/removing users to signalR groups in .NET 5.0
body: <p>The following code has been working in .netcoreapp3.1 but it stopped working after migrating the Http-triggered function to .NET 5.0:</p>
  <pre><code>public static class AddToGroup
      {
          [Function(&quot;addtogroup&quot;)]
          public static Task Run(
              [HttpTrigger(AuthorizationLevel.Function, &quot;get&quot;, Route = &quot;addtogroup/{trnantId}/{userId}&quot;)]
              HttpRequestData req,
              string tenantId,
              string userId,
              [SignalR(HubName = &quot;testhub&quot;)]
              IAsyncCollector&lt;SignalRGroupAction&gt; signalRGroupActions,
              FunctionContext executionContext)
          {
              return signalRGroupActions.AddAsync(new SignalRGroupAction
              {
                  UserId = $&quot;{tenantId}_{userId}&quot;,
                  GroupName = tenantId,
                  Action = GroupAction.Add
              });
          }
      }
  </code></pre>
  <p>Could anybody throw a guidance on an equivalent of this code in .NET 5.0?</p>