zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/Tenants/TenantInfo.cs
2023-12-05 17:22:48 +08:00

17 lines
470 B
C#

namespace ZeroFramework.IdentityServer.API.Tenants
{
public class TenantInfo(Guid? tenantId, string? name = null)
{
/// <summary>
/// Null indicates the host.
/// Not null value for a tenant.
/// </summary>
public Guid? TenantId { get; } = tenantId;
/// <summary>
/// Name of the tenant if <see cref="TenantId"/> is not null.
/// </summary>
public string? Name { get; } = name;
}
}