C# Class Exrin.Insights.ApplicationInsights

Inheritance: IApplicationInsights
Show file Open project: exrin/Exrin

Public Methods

Method Description
ApplicationInsights ( IDeviceInfo deviceInfo, INavigationReadOnlyState navigationState ) : Abstraction
Finalize ( IInsightData data ) : void
GetQueue ( ) : Task>
SetIdentity ( string userId, string fullName ) : void
TrackEvent ( string eventName, string message, [ callerName = "" ) : Task
TrackException ( Exception exception, [ callerName = "" ) : Task
TrackMetric ( string category, object value, [ callerName = "" ) : Task
TrackRaw ( IInsightData data ) : Task

Private Methods

Method Description
CleanVersion ( Version version ) : Version
FillData ( IInsightData data ) : Task

Used to fill in the extra details into the insights data before storage.

FillInThreadData ( IInsightData data ) : Task

Used to fill out the Insight Data with variables that must be obtained before the execution of the app continues.

Store ( IInsightData data ) : void

Store event in file for transmission

Method Details

ApplicationInsights() public method

public ApplicationInsights ( IDeviceInfo deviceInfo, INavigationReadOnlyState navigationState ) : Abstraction
deviceInfo IDeviceInfo
navigationState INavigationReadOnlyState
return Abstraction

Finalize() public method

public Finalize ( IInsightData data ) : void
data IInsightData
return void

GetQueue() public method

public GetQueue ( ) : Task>
return Task>

SetIdentity() public method

public SetIdentity ( string userId, string fullName ) : void
userId string
fullName string
return void

TrackEvent() public method

public TrackEvent ( string eventName, string message, [ callerName = "" ) : Task
eventName string
message string
callerName [
return Task

TrackException() public method

public TrackException ( Exception exception, [ callerName = "" ) : Task
exception System.Exception
callerName [
return Task

TrackMetric() public method

public TrackMetric ( string category, object value, [ callerName = "" ) : Task
category string
value object
callerName [
return Task

TrackRaw() public method

public TrackRaw ( IInsightData data ) : Task
data IInsightData
return Task