C# 클래스 Dev2.Instrumentation.Tracker

Tracks feature and event usage.
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf

공개 메소드들

메소드 설명
StartServer ( ) : void

This signals that Server has started. This should be placed before calling any other Tracker method.

StartStudio ( ) : void

This signals that Studio has started. This should be placed before calling any other Tracker method.

Stop ( ) : void

This method should be called when your application is exiting. It will signal Tracker to log the event and to attempt to Sync with the Servers. After calling this Method, Tracker.Start must be called again to start using Tracker.

TrackEvent ( TrackerEventGroup eventGroup, TrackerEventName eventName, string eventValue = null ) : void

Track events being used from within your application

TrackEvent ( TrackerEventGroup eventGroup, string customText, string eventValue = "" ) : void

Track events being used from within your application

TrackException ( string className, string methodName, Exception ex ) : void

Tracks and logs exceptions from within your code.

비공개 메소드들

메소드 설명
Perform ( Func action, bool async = false ) : void
Start ( string productId, string callHomeUrl ) : void
WriteError ( GenericReturn result ) : void

메소드 상세

StartServer() 공개 정적인 메소드

This signals that Server has started. This should be placed before calling any other Tracker method.
public static StartServer ( ) : void
리턴 void

StartStudio() 공개 정적인 메소드

This signals that Studio has started. This should be placed before calling any other Tracker method.
public static StartStudio ( ) : void
리턴 void

Stop() 공개 정적인 메소드

This method should be called when your application is exiting. It will signal Tracker to log the event and to attempt to Sync with the Servers. After calling this Method, Tracker.Start must be called again to start using Tracker.
public static Stop ( ) : void
리턴 void

TrackEvent() 공개 정적인 메소드

Track events being used from within your application
public static TrackEvent ( TrackerEventGroup eventGroup, TrackerEventName eventName, string eventValue = null ) : void
eventGroup TrackerEventGroup 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.
eventName TrackerEventName 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.
eventValue string An optional value which is related to your event and you would like to store.
리턴 void

TrackEvent() 공개 정적인 메소드

Track events being used from within your application
public static TrackEvent ( TrackerEventGroup eventGroup, string customText, string eventValue = "" ) : void
eventGroup TrackerEventGroup 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.
customText string 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.
eventValue string An optional value which is related to your event and you would like to store.
리턴 void

TrackException() 공개 정적인 메소드

Tracks and logs exceptions from within your code.
public static TrackException ( string className, string methodName, Exception ex ) : void
className string The class name from which the error originated. If the length of the string is greater than 50 it will be truncated.
methodName string The method name from which the error originated. If the length of the string is greater than 50 it will be truncated.
ex System.Exception The handled exception.
리턴 void