Example #1
0
 public void Send(string eventName, params object[] args)
 {
     try
     {
         _photinoWindow.Invoke(() =>
         {
             _photinoWindow.SendMessage($"{eventName}:{JsonSerializer.Serialize(args)}");
         });
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }