mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-22 09:36:09 +08:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using Microsoft.AppCenter;
|
|
using Microsoft.AppCenter.Analytics;
|
|
using Microsoft.AppCenter.Crashes;
|
|
using Microsoft.Extensions.Options;
|
|
using System.Application.Models;
|
|
using System.Windows;
|
|
using System.Windows.Shell;
|
|
using WpfApplication = System.Windows.Application;
|
|
|
|
namespace System.Application.UI
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for App.xaml
|
|
/// </summary>
|
|
public partial class WpfApp : WpfApplication
|
|
{
|
|
void JumpList_JumpItemsRejected(object sender, JumpItemsRejectedEventArgs e)
|
|
{
|
|
}
|
|
|
|
void JumpList_JumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
|
|
{
|
|
}
|
|
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
|
|
var options = DI.Get_Nullable<IOptions<AppSettings>>();
|
|
|
|
var appSecret = options?.Value.AppSecretVisualStudioAppCenter;
|
|
if (!string.IsNullOrWhiteSpace(appSecret))
|
|
{
|
|
AppCenter.Start(appSecret, typeof(Analytics), typeof(Crashes));
|
|
}
|
|
}
|
|
}
|
|
} |