-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
Description
Hi!
I have one question about reconfiguration tenants in MultitenantContainer, Now we cannot do it and I see the following lines in source code:
// The check and [potential] scope creation are locked here to
// ensure atomicity. We don't want to check and then have another
// thread create the lifetime scope behind our backs.
if (this._tenantLifetimeScopes.ContainsKey(tenantId))
{
throw new InvalidOperationException(string.Format(CultureInfo.CurrentUICulture, Properties.Resources.MultitenantContainer_TenantAlreadyConfigured, tenantId));
}But I think it will be great if we will can create new lifetime scope for tenant with new configuration. And does GC dispose lifetime scope when we will begin new scope for tenant?
So maybe we can do something following:
-
Allow to create new lifetime scope for configured tenants with new configuration?
-
Remove previous lifetime scope for reconfigured tenant?
There was small discussion here.
marcrocny