public static void StartServer() { #if !DEBUG Start("2386158864", "http://40589.tbnet1.com"); TBApp.StartAutoSync(true); #endif }
public static void TrackEvent(TrackerEventGroup eventGroup, string customText, string eventValue) { #if !DEBUG if (AppUsageStats.CollectUsageStats) { Perform(() => TBApp.EventTrackTxt(eventGroup.ToString(), customText, eventValue, null)); } #endif }
static void Start(string productId, string callHomeUrl) { Perform(() => { var location = Assembly.GetExecutingAssembly().Location; var filePath = Path.GetDirectoryName(location); var fvi = VersionInfo.FetchVersionInfo(); var productVersion = fvi; TBConfig.SetFilePath(filePath); TBConfig.CreateConfig(callHomeUrl, productId, productVersion, productVersion, false); return(TBApp.Start()); }); }
// ReSharper disable UnusedMember.Local static void Start(string productId, string callHomeUrl) // ReSharper restore UnusedMember.Local { Perform(() => { var location = Assembly.GetExecutingAssembly().Location; var filePath = Path.GetDirectoryName(location); #if !DEBUG && !TEST var fvi = VersionInfo.FetchVersionInfo(); var productVersion = fvi; #else // ReSharper disable ConvertToConstant.Local var productVersion = "0.0.9999.0"; // ReSharper restore ConvertToConstant.Local #endif TBConfig.SetFilePath(filePath); TBConfig.CreateConfig(callHomeUrl, productId, productVersion, productVersion, false); return(TBApp.Start()); }); }
/// <summary> /// This method should be called when your application is exiting. /// It will signal <see cref="Tracker"/> to log the event and to attempt to Sync with the Servers. /// After calling this Method, <see cref="Tracker.Start"/> must be called again to start using <see cref="Tracker"/>. /// </summary> public static void Stop() { #if !DEBUG WriteError(TBApp.Stop()); #endif }
/// <summary> /// Track events being used from within your application /// </summary> /// <param name="eventGroup">The text by which to group your event. If the length of this string and the 'eventName' parameter is greater than 40 it will be truncated. Also ';' (semicolons) and '|' (pipeline) are not to be used inside this parameter.</param> /// <param name="customText">The text used to describe the feature. If the length of this string and the 'eventGroup' parameter is greater than 40 it will be truncated. Also ';' (semicolons) and '|' (pipeline) are not to be used inside this parameter.</param> /// <param name="eventValue">An optional value which is related to your event and you would like to store.</param> public static void TrackEvent(TrackerEventGroup eventGroup, string customText, string eventValue = "") { #if !DEBUG Perform(() => TBApp.EventTrackTxt(eventGroup.ToString(), customText, eventValue, null)); #endif }
public static void OverriddenTrackEvent(TrackerEventGroup eventGroup, TrackerEventName executed, string eventValue) { #if !DEBUG Perform(() => TBApp.EventTrackTxt(eventGroup.ToString(), executed.ToString(), eventValue, null)); #endif }