C# 클래스 Microsoft.HockeyApp.HockeyClient

Implements the HockeyClient singleton
상속: HockeyApp.IHockeyClient, IHockeyClientInternal, IHockeyClientConfigurable
파일 보기 프로젝트 열기: bitstadium/HockeySDK-Windows 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateInitializedContextAsync Task
FillEmptyUserAndContactInfo void
HandleException void
HockeyClient Channel
Initialize void
IsTelemetryEnabled bool
Track void
TrackException void
TrackRequest void
TrackRequest void
WriteTelemetryToDebugOutput void

공개 메소드들

메소드 설명
AnyCrashesAvailableAsync ( ) : Task

Check for available crash-logs in storage

AuthorizeUserAsync ( string email, string password ) : Task

try to authorize a (hockeayapp) user by email and password

CheckForInitialization ( ) : void

Check if this HockeyClient has already been initialized (used internally by platform SDKs)

CreateCrashData ( Exception ex ) : ICrashData

Create a CrashData object from an Exception with the default CrashLogInformation

CreateCrashData ( Exception ex, CrashLogInformation crashLogInfo ) : ICrashData

Create a CrashData object from an Exception and a given CrashLogInformation

CreateCrashData ( string logString, string stackTrace ) : ICrashData

create a CrashData object from a logString and stacktrace (used for Unity crashes)

CreateNewFeedbackThread ( ) : IFeedbackThread

Create a feedback thread to post messages on

DeleteAllCrashesAsync ( ) : Task

Delete all crash-logs from storage

Deserialize ( Stream inputStream ) : ICrashData

Get an ICrashData object from crashlog-stream

Flush ( ) : void

Clears all buffers for this telemetry stream and causes any buffered data to be written to the underlying channel.

GetAppVersionsAsync ( ) : Task>

Get available app versions from the server

GetCrashFileNamesAsync ( ) : Task>

Retrieve filenames of crashlog files from storage

HandleExceptionAsync ( Exception ex ) : Task

Handle exception asyncronously

HandleInternalUnhandledException ( Exception unhandledException ) : void

Handle Exceptions that are swallowed because we don't want our SDK crash other apps For internal use by platform SDKs

IdentifyUserAsync ( string email, string appSecret ) : Task

Identify a user by his email-adress (hockeyapp id)

OpenFeedbackThreadAsync ( string threadToken ) : Task

Try to open an existng Feedbackthread

SendCrashesAndDeleteAfterwardsAsync ( ) : Task

Send crash-logs from storage and deletes the if they could be sent

TrackDependency ( DependencyTelemetry telemetry ) : void

Send information about external dependency call in the application.

TrackDependency ( string dependencyName, string commandName, DateTimeOffset startTime, System.TimeSpan duration, bool success ) : void

Send information about external dependency call in the application.

TrackEvent ( EventTelemetry telemetry ) : void

Send an EventTelemetry for display in Diagnostic Search and aggregation in Metrics Explorer.

TrackEvent ( string eventName ) : void

Send a custom event for display in Events tab.

TrackEvent ( string eventName, string>.IDictionary properties = null, double>.IDictionary metrics = null ) : void

Send an event telemetry for display in Diagnostic Search and aggregation in Metrics Explorer.

TrackException ( Exception exception, string>.IDictionary properties = null ) : void

Send an ExceptionTelemetry for display in Diagnostic Search.

TrackMetric ( MetricTelemetry telemetry ) : void

Send a MetricTelemetry for aggregation in Metric Explorer.

TrackMetric ( string name, double value, string>.IDictionary properties = null ) : void

Send a MetricTelemetry for aggregation in Metric Explorer.

TrackPageView ( PageViewTelemetry telemetry ) : void

Send information about the page viewed in the application.

TrackPageView ( string name ) : void

Send information about the page viewed in the application.

TrackTrace ( TraceTelemetry telemetry ) : void

Send a trace message for display in Diagnostic Search.

TrackTrace ( string message ) : void

Send a trace message for display in Diagnostic Search.

TrackTrace ( string message, string>.IDictionary properties ) : void

Send a trace message for display in Diagnostic Search.

TrackTrace ( string message, SeverityLevel severityLevel ) : void

Send a trace message for display in Diagnostic Search.

TrackTrace ( string message, SeverityLevel severityLevel, string>.IDictionary properties ) : void

Send a trace message for display in Diagnostic Search.

비공개 메소드들

메소드 설명
CreateInitializedContextAsync ( ) : Task
FillEmptyUserAndContactInfo ( string email ) : void
HandleException ( Exception ex ) : void
HockeyClient ( ) : Channel
Initialize ( ) : void

Initializes telemetry client. For performance reasons, this call needs to be performed only after TelemetryConfiguration has been initialized.

IsTelemetryEnabled ( ) : bool

Check to determine if the tracking is enabled.

Track ( ITelemetry telemetry ) : void
TrackException ( ExceptionTelemetry telemetry ) : void

Send an ExceptionTelemetry for display in Diagnostic Search.

TrackRequest ( RequestTelemetry request ) : void

Send information about a request handled by the application.

TrackRequest ( string name, DateTimeOffset startTime, System.TimeSpan duration, string responseCode, bool success ) : void

Send information about a request handled by the application.

WriteTelemetryToDebugOutput ( ITelemetry telemetry ) : void

메소드 상세

AnyCrashesAvailableAsync() 공개 메소드

Check for available crash-logs in storage
public AnyCrashesAvailableAsync ( ) : Task
리턴 Task

AuthorizeUserAsync() 공개 메소드

try to authorize a (hockeayapp) user by email and password
public AuthorizeUserAsync ( string email, string password ) : Task
email string email (hockeyapp user id)
password string password of the user
리턴 Task

CheckForInitialization() 공개 메소드

Check if this HockeyClient has already been initialized (used internally by platform SDKs)
public CheckForInitialization ( ) : void
리턴 void

CreateCrashData() 공개 메소드

Create a CrashData object from an Exception with the default CrashLogInformation
public CreateCrashData ( Exception ex ) : ICrashData
ex Exception
리턴 ICrashData

CreateCrashData() 공개 메소드

Create a CrashData object from an Exception and a given CrashLogInformation
public CreateCrashData ( Exception ex, CrashLogInformation crashLogInfo ) : ICrashData
ex Exception
crashLogInfo CrashLogInformation
리턴 ICrashData

CreateCrashData() 공개 메소드

create a CrashData object from a logString and stacktrace (used for Unity crashes)
public CreateCrashData ( string logString, string stackTrace ) : ICrashData
logString string
stackTrace string
리턴 ICrashData

CreateNewFeedbackThread() 공개 메소드

Create a feedback thread to post messages on
public CreateNewFeedbackThread ( ) : IFeedbackThread
리턴 IFeedbackThread

DeleteAllCrashesAsync() 공개 메소드

Delete all crash-logs from storage
public DeleteAllCrashesAsync ( ) : Task
리턴 Task

Deserialize() 공개 메소드

Get an ICrashData object from crashlog-stream
public Deserialize ( Stream inputStream ) : ICrashData
inputStream Stream stream from crashlog
리턴 ICrashData

Flush() 공개 메소드

Clears all buffers for this telemetry stream and causes any buffered data to be written to the underlying channel.
public Flush ( ) : void
리턴 void

GetAppVersionsAsync() 공개 메소드

Get available app versions from the server
public GetAppVersionsAsync ( ) : Task>
리턴 Task>

GetCrashFileNamesAsync() 공개 메소드

Retrieve filenames of crashlog files from storage
public GetCrashFileNamesAsync ( ) : Task>
리턴 Task>

HandleExceptionAsync() 공개 메소드

Handle exception asyncronously
public HandleExceptionAsync ( Exception ex ) : Task
ex Exception the exception that should be saved to a crashlog
리턴 Task

HandleInternalUnhandledException() 공개 메소드

Handle Exceptions that are swallowed because we don't want our SDK crash other apps For internal use by platform SDKs
public HandleInternalUnhandledException ( Exception unhandledException ) : void
unhandledException Exception the exception to propagate
리턴 void

IdentifyUserAsync() 공개 메소드

Identify a user by his email-adress (hockeyapp id)
public IdentifyUserAsync ( string email, string appSecret ) : Task
email string email (hockeyapp user id)
appSecret string app secret of the app
리턴 Task

OpenFeedbackThreadAsync() 공개 메소드

Try to open an existng Feedbackthread
public OpenFeedbackThreadAsync ( string threadToken ) : Task
threadToken string thread token for this thread
리턴 Task

SendCrashesAndDeleteAfterwardsAsync() 공개 메소드

Send crash-logs from storage and deletes the if they could be sent
public SendCrashesAndDeleteAfterwardsAsync ( ) : Task
리턴 Task

TrackDependency() 공개 메소드

Send information about external dependency call in the application.
public TrackDependency ( DependencyTelemetry telemetry ) : void
telemetry DependencyTelemetry
리턴 void

TrackDependency() 공개 메소드

Send information about external dependency call in the application.
public TrackDependency ( string dependencyName, string commandName, DateTimeOffset startTime, System.TimeSpan duration, bool success ) : void
dependencyName string External dependency name.
commandName string Dependency call command name.
startTime DateTimeOffset The time when the dependency was called.
duration System.TimeSpan The time taken by the external dependency to handle the call.
success bool True if the dependency call was handled successfully.
리턴 void

TrackEvent() 공개 메소드

Send an EventTelemetry for display in Diagnostic Search and aggregation in Metrics Explorer.
public TrackEvent ( EventTelemetry telemetry ) : void
telemetry EventTelemetry An event log item.
리턴 void

TrackEvent() 공개 메소드

Send a custom event for display in Events tab.
public TrackEvent ( string eventName ) : void
eventName string Event name
리턴 void

TrackEvent() 공개 메소드

Send an event telemetry for display in Diagnostic Search and aggregation in Metrics Explorer.
public TrackEvent ( string eventName, string>.IDictionary properties = null, double>.IDictionary metrics = null ) : void
eventName string A name for the event.
properties string>.IDictionary Named string values you can use to search and classify events.
metrics double>.IDictionary Measurements associated with this event.
리턴 void

TrackException() 공개 메소드

Send an ExceptionTelemetry for display in Diagnostic Search.
public TrackException ( Exception exception, string>.IDictionary properties = null ) : void
exception Exception The exception to log.
properties string>.IDictionary Named string values you can use to classify and search for this exception.
리턴 void

TrackMetric() 공개 메소드

Send a MetricTelemetry for aggregation in Metric Explorer.
public TrackMetric ( MetricTelemetry telemetry ) : void
telemetry MetricTelemetry
리턴 void

TrackMetric() 공개 메소드

Send a MetricTelemetry for aggregation in Metric Explorer.
public TrackMetric ( string name, double value, string>.IDictionary properties = null ) : void
name string Metric name.
value double Metric value.
properties string>.IDictionary Named string values you can use to classify and filter metrics.
리턴 void

TrackPageView() 공개 메소드

Send information about the page viewed in the application.
public TrackPageView ( PageViewTelemetry telemetry ) : void
telemetry PageViewTelemetry
리턴 void

TrackPageView() 공개 메소드

Send information about the page viewed in the application.
public TrackPageView ( string name ) : void
name string Name of the page.
리턴 void

TrackTrace() 공개 메소드

Send a trace message for display in Diagnostic Search.
public TrackTrace ( TraceTelemetry telemetry ) : void
telemetry TraceTelemetry Message with optional properties.
리턴 void

TrackTrace() 공개 메소드

Send a trace message for display in Diagnostic Search.
public TrackTrace ( string message ) : void
message string Message to display.
리턴 void

TrackTrace() 공개 메소드

Send a trace message for display in Diagnostic Search.
public TrackTrace ( string message, string>.IDictionary properties ) : void
message string Message to display.
properties string>.IDictionary Named string values you can use to search and classify events.
리턴 void

TrackTrace() 공개 메소드

Send a trace message for display in Diagnostic Search.
public TrackTrace ( string message, SeverityLevel severityLevel ) : void
message string Message to display.
severityLevel SeverityLevel Trace severity level.
리턴 void

TrackTrace() 공개 메소드

Send a trace message for display in Diagnostic Search.
public TrackTrace ( string message, SeverityLevel severityLevel, string>.IDictionary properties ) : void
message string Message to display.
severityLevel SeverityLevel Trace severity level.
properties string>.IDictionary Named string values you can use to search and classify events.
리턴 void