feat: move MC into Essentials

In order to solve some dependency issues that keep cropping up, MC
should be moved back into the Essentials repo and loaded automatically
on startup. This will allow for all plugins that use the MC Messengers
library to use the same version without fear of overwriting a dll due to
loading of plugin libraries.
This commit is contained in:
Andrew Welker
2025-03-24 22:28:27 -05:00
parent 3d91723ab0
commit f6fdc14059
89 changed files with 15625 additions and 7 deletions

View File

@@ -0,0 +1,37 @@
using Newtonsoft.Json;
using PepperDash.Essentials.Core;
namespace PepperDash.Essentials
{
internal class WebSocketServerSecretProvider : CrestronLocalSecretsProvider
{
public WebSocketServerSecretProvider(string key)
: base(key)
{
Key = key;
}
}
public class WebSocketServerSecret : ISecret
{
public ISecretProvider Provider { get; private set; }
public string Key { get; private set; }
public object Value { get; private set; }
public WebSocketServerSecret(string key, object value, ISecretProvider provider)
{
Key = key;
Value = JsonConvert.SerializeObject(value);
Provider = provider;
}
public ServerTokenSecrets DeserializeSecret()
{
return JsonConvert.DeserializeObject<ServerTokenSecrets>(Value.ToString());
}
}
}