myquay / MultiTenant.AspNetCore

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

Q: Is MultiTenant compatible with Blazor? #4

Open epsitec opened 2 weeks ago

epsitec commented 2 weeks 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 week 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?