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)

public interface class IMeteringService : ITeamFoundationService

The IMeteringService type exposes the following members.

  NameDescription
Public methodGetResourceStatus(TeamFoundationRequestContext, Boolean)
Public methodGetResourceStatus(TeamFoundationRequestContext, ResourceName, Boolean)Returns detailed facts about specified resource.
Public methodReportUsageSends usage information to billing pipeline. Note that this method requires the request context to be at the application level with user identity.
Public methodServiceEndServiceEnd is called when the Host is being Shutdown and this service should free all resources it is holding onto. (Inherited from ITeamFoundationService.)
Public methodServiceStartServiceStart 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.)
Public methodSetAccountQuantityUpdates 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.
Public methodTogglePaidBillingToggles 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.
Top
Show: