Class CountingService

Namespace: ArmoniK.Api.Mock
Assembly: ArmoniK.Api.Mock.dll

public static class CountingService

Inheritance

objectCountingService

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

GetCounters(IDictionary<string, HashSet<string>>?)

Get the counters for all recorded types and methods.

public static Dictionary<string, Dictionary<string, long>> GetCounters(IDictionary<string, HashSet<string>>? exclude = null)

Parameters

exclude IDictionary<string, HashSet<string>>?

Methods to exclude from the count

Returns

Dictionary<string, Dictionary<string, long>>

Counters

GetServices()

Get a list of all counting services (ie: types that are marked with [Counting] attribute)

public static IEnumerable<Type> GetServices()

Returns

IEnumerable<Type>

Enumeration of counting services

ResetCounters()

Reset all the counters

public static void ResetCounters()