AnalyticsMonitorFactory CreateMonitor Method (String).NET Progress Telerik Platform Analytics Monitor Documentation, API Reference, Online Help | WPF, Silverlight, WinForms, Windows Phone Application Analytics
Create an IAnalyticsMonitor instance using the default settings

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.144.0 (3.2.144)
Syntax

public static IAnalyticsMonitor CreateMonitor(
	string productId
)

Return Value

an instance of the IAnalyticsMonitor interface
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptionthrown if product id provided have the wrong format (guid format expected)
Examples

This sample shows how to start the Analytics monitor.
class MyClass 
{
  static void Main() 
  {
    //Creating IAnalyticsMonitor
    IAnalyticsMonitor monitor = AnalyticsMonitorFactory.CreateMonitor("YOUR_PRODUCT_KEY_HERE");

    //Start Analytics monitor
    monitor.Start();

    /*Your program here....*/ 

    //Stop Analytics monitor
    monitor.Stop();
  }
}
See Also