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
quotaServiceIdentifierstringThe identifier of the QuotaService instance managing this quota context.
quotaQuotaDefinitionThe QuotaDefinition providing the quota configuration.
loggerILoggerThe 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
userIdentifierstringThe user identifier used to get the quota metric partition
userPrincipalNamestringThe user principal name used to get the quota metric partition.
Returns
- QuotaMetricPartition
A QuotaMetricPartition instance.