We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1716ec0 + 078d685 commit 5f2083fCopy full SHA for 5f2083f
src/Plugins/BotSharp.Plugin.ChatHub/SignalRHub.cs
@@ -28,7 +28,8 @@ public override async Task OnConnectedAsync()
28
_logger.LogInformation($"SignalR Hub: {_user.FirstName} {_user.LastName} ({Context.User.Identity.Name}) connected in {Context.ConnectionId}");
29
30
var convService = _services.GetRequiredService<IConversationService>();
31
- _context.HttpContext.Request.Query.TryGetValue("conversation-id", out var conversationId);
+ var httpContext = Context.GetHttpContext();
32
+ string? conversationId = httpContext?.Request?.Query["conversation-id"].FirstOrDefault();
33
34
if (!string.IsNullOrEmpty(conversationId))
35
{
0 commit comments