IMeteringService GetMeteringLogDetails Method CelloSaaS API Documentation
Returns the metering log details for the given date period.

Namespace: CelloSaaS.ServiceContracts.LicenseManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

Dictionary<string, List<MeteringLog>> GetMeteringLogDetails(
	string tenantId,
	Nullable<DateTime> startDate,
	Nullable<DateTime> endDate
)

Parameters

tenantId
Type: System String
Tenant Identifier(Mandatory)
startDate
Type: System Nullable DateTime 
Start Date of the log
endDate
Type: System Nullable DateTime 
End Date of the log

Return Value

Type: Dictionary String, List MeteringLog  
Metering Log Details
Exceptions

ExceptionCondition
System ArgumentNullExceptionThrows ArgumentNullException if any mandatory argument is null or empty
CelloSaaS.ServiceContracts.LicenseManagement LicenseExceptionThrows LicenseException if any error occurs in this method
Examples

public void GetMeteringLogDetails()
{
    string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    DateTime? startDate =  Convert.ToDateTime("4/1/2010");
    DateTime? endDate = Convert.ToDateTime("4/15/2010");
    IMeteringService meteringService = ServiceLocator.Resolve<IMeteringService>();
    Dictionary<string, List<MeteringLog>> meteringLogDetails = meteringService.GetMeteringLogDetails(tenantId, startDate, endDate);
}
See Also