WithDelegateStrategy is executed several times #839
Unanswered
mxSoftware3
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi that should work but it looks like you won’t have a tenant store configured. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am new in the use of the library, is it possible to use a delegate strategy to get the tenant of the querystring of the request?
I am using the following code but it is executed many times and only the first time it enters it has the tenant, after that the tenant is always null.
builder.Services.AddMultiTenant()
.WithDelegateStrategy(context =>
{
var httpContext = context as HttpContext;
if (httpContext == null)
return null;
Help !!
Beta Was this translation helpful? Give feedback.
All reactions