Adding exceptionless support

This commit is contained in:
Michele 2020-12-11 23:49:10 +00:00
parent 59736aa041
commit d61d207fb8
3 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,5 @@
using System;
using Exceptionless;
namespace Sledgemapper
{
@ -7,6 +8,8 @@ namespace Sledgemapper
[STAThread]
static void Main()
{
ExceptionlessClient.Default.Configuration.ServerUrl="https://exceptionless.michelescandura.com";
ExceptionlessClient.Default.Startup("uprV1LocxAlUPPC9oB4eOlt8jGZ5WypMZKdJCsdL");
using (var game = new Sledgemapper())
game.Run();
}

View file

@ -1,4 +1,6 @@
using Microsoft.AspNetCore.SignalR.Client;
using Exceptionless;
using Exceptionless.Models;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
@ -81,6 +83,7 @@ namespace Sledgemapper
protected override void Initialize()
{
ExceptionlessClient.Default.SubmitEvent(new Event { Message = "Initialize", Type = "AppLifecycle", Source = "Fuel System" });
IsMouseVisible = true;
Window.AllowUserResizing = true;
base.Initialize();

View file

@ -42,6 +42,7 @@
</ItemGroup> -->
<ItemGroup>
<PackageReference Include="AsyncAwaitBestPractices" Version="5.0.2" />
<PackageReference Include="exceptionless" Version="4.5.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.0.1641" />