Esempio n. 1
0
        static void WriteTelemetry()
        {
            WriteTrace("some message");
            WriteEvent("some event");
            WriteException(new Exception("some exception"));

            TelemetryLogger.Flush();       // more efficient not to flush, but ok for playing ;-)
        }
Esempio n. 2
0
 static void WriteException(Exception exception)
 {
     TelemetryLogger.LogException(exception);
 }
Esempio n. 3
0
 static void WriteEvent(string eventName)
 {
     TelemetryLogger.LogEvent(eventName);
 }
Esempio n. 4
0
 static void WriteTrace(string message)
 {
     TelemetryLogger.LogTrace(message);
 }