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
{
///
/// Interaction logic for App.xaml
///
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>();
var appSecret = options?.Value.AppSecretVisualStudioAppCenter;
if (!string.IsNullOrWhiteSpace(appSecret))
{
AppCenter.Start(appSecret, typeof(Analytics), typeof(Crashes));
}
}
}
}