fix: sln names and package versions

- adjusted the sln and csproj name
- bumped the crestron sdk
- added in newtonsoft 13.0 conditionally for net6/8
- fixed a few issues where we were using crestron newtonsoft specific methods
This commit is contained in:
Nick Genovese
2024-10-30 15:47:16 -04:00
parent 19c9165db2
commit 9c9d2cfe02
91 changed files with 346 additions and 342 deletions

View File

@@ -0,0 +1,37 @@
using Crestron.SimplSharp;
using Serilog.Core;
using Serilog.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PepperDash.Core.Logging
{
public class CrestronEnricher : ILogEventEnricher
{
static readonly string _appName;
static CrestronEnricher()
{
switch (CrestronEnvironment.DevicePlatform)
{
case eDevicePlatform.Appliance:
_appName = $"App {InitialParametersClass.ApplicationNumber}";
break;
case eDevicePlatform.Server:
_appName = $"{InitialParametersClass.RoomId}";
break;
}
}
public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
{
var property = propertyFactory.CreateProperty("App", _appName);
logEvent.AddOrUpdateProperty(property);
}
}
}