mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-13 08:11:16 +00:00
16 lines
441 B
C#
16 lines
441 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Threading;
|
|
|
|
namespace ZitiDesktopEdge.Server {
|
|
public class EventRegistry {
|
|
protected static SemaphoreSlim semaphoreSlim = new SemaphoreSlim(1, 1);
|
|
|
|
public static event EventHandler MyEvent;
|
|
|
|
public static void SendEventToConsumers(object objToSend) {
|
|
MyEvent?.Invoke(JsonConvert.SerializeObject(objToSend), null);
|
|
}
|
|
}
|
|
}
|