question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MultiTenantContext can be null?

See original GitHub issue

It seems that if no tenant was resolved, MultiTenantContextAccessor<T> will return null for MultiTenantContext. So should this warrant a nullable reference?

https://github.com/Finbuckle/Finbuckle.MultiTenant/blob/65507bfe47ff05ca99f015dec527d6c9951ff76a/src/Finbuckle.MultiTenant/Abstractions/IMultiTenantContextAccessor.cs#L13

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AndrewTriesToCodecommented, Dec 7, 2021

@Bouke I agree with you that both as nullable is annoying – I think for the next major release I’ll have MultiTenantContext be non-nullable. No set timeframe for that yet though.

0reactions
Boukecommented, Jul 31, 2022

Ugh stale bot 👎.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET Core Multi Tenant localhost is null after setting
MultiTenant should work with either approach--I'll try to clarify how it works below. It looks like you are setting the tenant info yourself, ......
Read more >
value is always null when using HttpContext.User.Identity. ...
I am using .net core 6.0 I am struggling with this issue for past 2 days and could not resolve it. This value...
Read more >
MultiTenant Strategies
Multiple strategies can be registered after AddMultiTenant<T> and each strategy will be tried in the order configured until a non-null identifier is returned....
Read more >
Null and undefined (Reference) - Prisma
How Prisma Client handles null and undefined, including a GraphQL use case. ... return "ariadne@prisma.io"; // Could be null! } return null;.
Read more >
Tenent coming as null during Springboot - Flowable forum
This means that you did not set any tenant on booting up. The exception means that some processes have been tried be deployed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found