Click or drag to resize
AnalyticsMonitorFactoryCreate Method
Create an IAnalyticsMonitor instance using the customized settings in the AnalyticsMonitorSettings instance.

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 Create(
	IAnalyticsMonitorSettings settings
)

Parameters

settings
Type: EQATEC.Analytics.MonitorIAnalyticsMonitorSettings
the settings to use for constructing the instance

Return Value

Type: IAnalyticsMonitor
an instance of the IAnalyticsMonitor interface
Exceptions
ExceptionCondition
ArgumentNullExceptionthrown if the settings is null
Examples
This sample shows how to start the Analytics monitor.
class MyClass 
{
  static void Main() 
  {
    //Creating AnalyticsMonitorSettings
    AnalyticsMonitorSettings settings = new AnalyticsMonitorSettings("YOUR_PRODUCT_KEY_HERE");
    settings.TestMode = true;

    //Creating IAnalyticsMonitor
    IAnalyticsMonitor monitor = AnalyticsMonitorFactory.Create(settings);

    //Start Analytics monitor
    monitor.Start();

    /*Your program here....*/

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