mirror of
https://github.com/farcasclaudiu/LanBackup.git
synced 2026-06-27 05:00:30 +03:00
Add project files.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Microsoft.ApplicationInsights;
|
||||
using System;
|
||||
|
||||
namespace LanBackup.WebApp.Models.Telemetry
|
||||
{
|
||||
public class TelemetryLogger : ITelemetryLogger
|
||||
{
|
||||
private TelemetryClient _telemetryClient;
|
||||
|
||||
public TelemetryLogger(TelemetryClient telemetryClient)
|
||||
{
|
||||
this._telemetryClient = telemetryClient;
|
||||
}
|
||||
|
||||
public void TrackEvent(string eventmsg)
|
||||
{
|
||||
this._telemetryClient.TrackEvent(eventmsg);
|
||||
}
|
||||
|
||||
public void TrackException(Exception ex)
|
||||
{
|
||||
this._telemetryClient.TrackException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user