Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add support/extension to register multitenant container #18

Closed
ssunkari opened this issue Jun 30, 2021 · 3 comments
Closed

Can you add support/extension to register multitenant container #18

ssunkari opened this issue Jun 30, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@ssunkari
Copy link

ssunkari commented Jun 30, 2021

https://autofac.readthedocs.io/en/latest/advanced/multitenant.html
Below is the config for web host builder
builder.UseServiceProviderFactory(new AutofacMultitenantServiceProviderFactory(ConfigureMultitenantContainer));

public static MultitenantContainer ConfigureMultitenantContainer(IContainer container)
        {
            
            // This is the MULTITENANT PART. Set up your tenant-specific stuff here.
            var strategy = new ManualTenantIdentificationStrategy();
            var mtc = new MultitenantContainer(strategy, container);
            mtc.ConfigureTenant("a", cb => cb.RegisterType<TenantA>().As<ITenant>());
            return mtc;
        }
@junalmeida
Copy link
Owner

I will take a look on that, thanks for your suggestion

@junalmeida junalmeida added the enhancement New feature or request label Jul 14, 2021
@stale
Copy link

stale bot commented Oct 22, 2021

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.

@stale stale bot added the staleissue label Oct 22, 2021
@stale stale bot closed this as completed Oct 29, 2021
junalmeida added a commit that referenced this issue Oct 14, 2022
* Deprecate UseLogger
* Example with v3
@junalmeida junalmeida reopened this Oct 14, 2022
@stale stale bot removed the staleissue label Oct 14, 2022
junalmeida added a commit that referenced this issue Oct 14, 2022
* Deprecate UseLogger
* Example with v3
* Fix build process
* Fix documentation
@junalmeida
Copy link
Owner

@ssunkari Syntax has changed and that may allow to inject a multitenant container. Let me know if that works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants