myquay / MultiTenant.AspNetCore

Multi-tenancy support for ASP.NET Core 8
MIT License
20 stars 5 forks source link

Q: Is MultiTenant compatible with Blazor? #4

Open epsitec opened 1 month ago

epsitec commented 1 month ago

MultiTenant solves in a very nice way what I was trying to accomplish. I am experimenting with it and can't manage to have Blazor components @inject services declared through WithTenantedServices(). Now, I wonder if I am doing something wrong, or if perhaps the middleware code is not compatible with SignalR:

context.Features.Set<IServiceProvidersFeature>(new RequestServicesFeature(...));
myquay commented 1 month ago

Hi @epsitec,

It's not a use case I have explicitly worked through, but I think it would be nice to have compatibility out of the box. Are you able to provide a minimal example project of what you're looking to achieve so I can work through it with you and see if it's possible to support?