**Initialize React Vite project with basic setup**

Add initial project structure including React, Vite, TailwindCSS, and Syncfusion dependencies. Configure tooling with ESLint, TypeScript, and Tailwind plugins. Set up `.gitignore`, Syncfusion themes, and example components for demonstration purposes.
This commit is contained in:
2025-02-07 23:21:46 +01:00
parent be2599218d
commit 9b45752d1a
33 changed files with 6511 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
using Microsoft.AspNetCore.SignalR;
namespace Api.SignalR
{
public class UserProvider : IUserIdProvider
{
public string GetUserId(HubConnectionContext connection)
{
// Extract the "userId" query parameter from the HTTP context.
var httpContext = connection.GetHttpContext();
return httpContext?.Request.Query["userId"].FirstOrDefault();
}
}
}