-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml.cs
46 lines (38 loc) · 1.11 KB
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Sentry;
using Sentry.Protocol;
namespace KiriMusicHelper {
/// <summary>
/// Interaktionslogik für "App.xaml"
/// </summary>
public partial class App : Application {
}
public class MainSentry
{
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static void Main()
{
using (SentrySdk.Init((o) => {
o.Dsn = new Dsn("https://[email protected]/5371586");
o.Release = "KiriMusicHelper@a1";
o.Environment = "Alpha";
}))
{
SentrySdk.ConfigureScope((scope) => {
scope.User = new User
{
Username = System.Security.Principal.WindowsIdentity.GetCurrent().Name
};
});
App.Main();
}
}
}
}