Represents a watched object to query for IC statistics and listen for updates to those statistics.
Namespace: ININ.IceLib.StatisticsAssembly: ININ.IceLib.Statistics (in ININ.IceLib.Statistics.dll) Version: 0.0.0.0 (22.3.0.218)
Syntax
C# |
---|
public class StatisticListener |
Visual Basic |
---|
Public Class StatisticListener |
Remarks
To watch for changes to statistic values, first call StartWatching(array<StatisticKey>[]()[][]) or StartWatchingAsync(array<StatisticKey>[]()[][], AsyncCompletedEventHandler, Object) to start a watch on the StatisticKey objects of interest. You can then use the indexer to retrieve the StatisticValue of a watched key. You can also register an event handler on StatisticValueUpdated to be notified when the statistic values change.
Note |
---|
For more information on getting started with statistics see Getting Started With Statistics. |
Note |
---|
For for the list of available statistics see Statistics Catalog. |
Examples
The IceLib SDK includes example application references to the StatisticListener class. Some examples are listed below.
Project | Location |
---|---|
TutorialExample | SystemStatisticsViewModel.cs, line 79, in SystemStatisticsViewModel.SessionConnectionStateChanged |
SystemStatisticsViewModel.cs, line 34, in SystemStatisticsViewModel.#ctor | |
SystemStatisticsViewModel.cs, line 119, in SystemStatisticsViewModel.StartWatchingCatalogCompleted | |
SystemStatisticsViewModel._StatisticListener |
Inheritance Hierarchy
System..::..Object
ININ.IceLib.Statistics..::..StatisticListener
ININ.IceLib.Statistics..::..StatisticListener
Version Information
Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.