Show / Hide Table of Contents

Class UsageCalculator

Helper class to calculate resource usage

Inheritance
object
UsageCalculator
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Services.Implementation
Assembly: SoCore.dll
Syntax
public static class UsageCalculator

Fields

NoReturnValue

Helper class to calculate resource usage

Declaration
public const string NoReturnValue = "!!noreturn!!"
Field Value
Type Description
string

Methods

GetRecordsFromResults(object)

Calculate resource usage from a result.

Declaration
public static int GetRecordsFromResults(object results)
Parameters
Type Name Description
object results

Return value to calculate records from.

Returns
Type Description
int

RecordDatabaseRecordsFromResult(IResourceUsageBucket, object)

Record usage from the result of a service call

Declaration
public static int RecordDatabaseRecordsFromResult(this IResourceUsageBucket resourceUsageBucket, object results)
Parameters
Type Name Description
IResourceUsageBucket resourceUsageBucket

Resource usage bucket to calculate usage to.

object results

Return value to calculate records from.

Returns
Type Description
int
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top