.NET API
IVoicePricingReader
Namespace Tracon · Assembly
Tracon.Abstractions.dllReads the configured voice model’s pricing.
public interface IVoicePricingReaderRemarks
Section titled “Remarks”The HTTP layer uses this abstraction to show voice pricing; pricing
resolution is inside Tracon.Voice, and the HTTP layer cannot
reference that package (the package direction rule). Tracon does not
fabricate a price: if there is no match, null is
returned — not zero.
DI lifetime — singleton. Registered as a singleton with
TryAdd; a consumer’s own registration wins.
Tenant behavior — TENANT-INDEPENDENT. Pricing is configured process-wide, not per tenant; no member here takes a tenant parameter.
Properties
Section titled “Properties”Currency
Section titled “ Currency”The currency label shown in reports.
string? Currency { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ForCharacters(decimal)
Section titled “ ForCharacters(decimal)”Computes a character-based generation’s cost.
decimal? ForCharacters(decimal characters)Parameters
Section titled “Parameters”characters decimal
The billed character count.
Returns
Section titled “Returns”The amount; null if pricing is undefined.