This documentation is archived and is not being maintained.
IMeteringService Interface
Visual Studio 2013
Metering service API contracts
Namespace: Microsoft.VisualStudio.Services.Commerce
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
The IMeteringService type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | GetResourceStatus(TeamFoundationRequestContext, Boolean) | |
![]() | GetResourceStatus(TeamFoundationRequestContext, ResourceName, Boolean) | Returns detailed facts about specified resource. |
![]() | ReportUsage | Sends usage information to billing pipeline. Note that this method requires the request context to be at the application level with user identity. |
![]() | ServiceEnd | ServiceEnd is called when the Host is being Shutdown and this service should free all resources it is holding onto. (Inherited from ITeamFoundationService.) |
![]() | ServiceStart | ServiceStart is called when the service is initialized. If the service is intialized asynchronously it must implement Service_Ready which is used to determine when the service is ready for users to access it. (Inherited from ITeamFoundationService.) |
![]() | SetAccountQuantity | Updates account level included and maximum quantities. The new included quantity allows the usage to be free until this quantity. The new maximum quantity is the maximum billable quantity that is allowed for the account. |
![]() | TogglePaidBilling | Toggles paid billing state for the specified account id and resource name. The specified resource must be a pay as go resource otherwise an argument exception is thrown back to the caller. |
Show:
