Click or drag to resize
IAnalyticsMonitorStop Method (TimeSpan)
Call to stop the monitor. The monitor will attempt to save any pending state to the storage and send the final tracking data to the servers. The waitForCompletion can be specified to allow for the thread to wait for completion of data persistence and transmission. If the monitor cannot complete before the specified time the call will return.

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.1.0 (3.2.1)
Syntax
void Stop(
	TimeSpan waitForCompletion
)

Parameters

waitForCompletion
Type: SystemTimeSpan
The time to wait for the stop to complete successfully. Use Zero to avoid waiting for completion.
Remarks
This call will attempt to send the final tracking data to the servers on a background thread and by providing a waitForCompletion timeout you increase the chance that the monitor is able to completion the transmission while the runtime and threadpools are still operational. If no timeout is specified the monitors background threads and network connections may be removed as part of the process termination and thereby leaving data in the cache to be delivered on the next startup.
See Also