Blazor UI: Current Tenant
ICurrentTenant
service can be used to get information about the current tenant in a multi-tenant application. ICurrentTenant
defines the following properties;
Id
(Guid
): Id of the current tenant. Can benull
if the current user is a host user or the tenant could not be determined.Name
(string
): Name of the current tenant. Can benull
if the current user is a host user or the tenant could not be determined.IsAvailable
(bool
): Returnstrue
if theId
is notnull
.
Example: Show the current tenant name on a page