Click or drag to resize
AnalyticsMonitorFactoryCreateMonitor Method (String)
Create an IAnalyticsMonitor instance using the default settings

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.1.0 (3.2.1)
Syntax
public static IAnalyticsMonitor CreateMonitor(
	string productId
)

Parameters

productId
Type: SystemString
the product ID

Return Value

Type: IAnalyticsMonitor
an instance of the IAnalyticsMonitor interface
Exceptions
ExceptionCondition
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