Finbuckle / Finbuckle.MultiTenant

Finbuckle.MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, and per-tenant data isolation.
https://www.finbuckle.com/multitenant
Apache License 2.0
1.3k stars 265 forks source link

Azure Webjobs #138

Closed alexmaie closed 4 years ago

alexmaie commented 5 years ago

Hey,

Can we use this library outside of asp core? As an example,we could put a message on a queue and have an azure webjob process the message. The message has a tenant id and the webjob would save the changes to the appropriate database

Thanks Alex

AndrewTriesToCode commented 5 years ago

Hi @alexmaie Yes, you can just reference the Finbuckle.MultiTenant.EntityFrameworkCore Nuget package then when you spin up a dbcontext that derives from MultiTenantDbContext make sure to provide the constructor a TenantInfo object. In ASP.NET Core DI handles this for you, but it can be done manually too.

alexmaie commented 5 years ago

Hey, thanks for the quick reply.

I assume that I could also use the other base project (not asp core) since I can't use ef core.

On Sun, May 19, 2019, 00:57 Andrew White notifications@github.com wrote:

Hi @alexmaie https://github.com/alexmaie Yes, you can just reference the Finbuckle.MultiTenant.EntityFrameworkCore Nuget package then when you spin up a dbcontext that derives from MultiTenantDbContext make sure to provide the constructor a TenantInfo object. In ASP.NET Core DI handles this for you, but it can be done manually too.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Finbuckle/Finbuckle.MultiTenant/issues/138?email_source=notifications&email_token=ABCKJIKONJGMWJZP6FOYDK3PWB3URA5CNFSM4HN3DKW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWWWHQ#issuecomment-493710110, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCKJILOMTZNWZG6LNSUTBTPWB3URANCNFSM4HN3DKWQ .

AndrewTriesToCode commented 5 years ago

Hi @alexmaie Sure, the Finbuckle.MultiTenant.Core package contains things like the basic strategy, stores, and interfaces. I'm not sure how useful it will be without ASP.NET Core in the picture.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.