Class UserPrincipalNameQuotaContext
- Namespace
- FoundationaLLM.Common.Services.Quota
- Assembly
- FoundationaLLM.Common.dll
Implements a quota context partitioned by user principal name.
public class UserPrincipalNameQuotaContext : QuotaContextBase
- Inheritance
-
UserPrincipalNameQuotaContext
- Inherited Members
- Extension Methods
Constructors
UserPrincipalNameQuotaContext(string, QuotaDefinition, ILogger)
Implements a quota context partitioned by user principal name.
public UserPrincipalNameQuotaContext(string quotaServiceIdentifier, QuotaDefinition quota, ILogger logger)
Parameters
quotaServiceIdentifier
stringThe identifier of the QuotaService instance managing this quota context.
quota
QuotaDefinitionThe QuotaDefinition providing the quota configuration.
logger
ILoggerThe logger used for logging.
Methods
GetQuotaMetricPartition(string, string)
Gets the quota metric partition that corresponds to the specified user identifier and/or user principal name.
protected override QuotaMetricPartition GetQuotaMetricPartition(string userIdentifier, string userPrincipalName)
Parameters
userIdentifier
stringThe user identifier used to get the quota metric partition
userPrincipalName
stringThe user principal name used to get the quota metric partition.
Returns
- QuotaMetricPartition
A QuotaMetricPartition instance.