Beispiel #1
0
        private static void ShowInfoMessage(string messageText, Exception ex = null)
        {
            if (ex != null)
            {
                messageText += $"\n\nException message:\n{ ex.Message }\n\nException source:\n{ ex.Source }";
            }
            var sender = "UpdatingCurrencyRates";

            MsgChannelUtilities.PostMessageToAll(sender, messageText);
        }
Beispiel #2
0
        static void SendMessageToUi(Guid recordId, string MyEvent)
        {
            string senderName = "ActivityEventListener";
            // Example for message
            string message = JsonConvert.SerializeObject(new {
                RecordID = recordId,
                Event    = MyEvent
            });

            // For all users
            MsgChannelUtilities.PostMessageToAll(senderName, message);
        }
Beispiel #3
0
        static void SendMessageToUi(Guid ContactId, string MyEvent, bool Zoomable)
        {
            string senderName = "ZoomAccountUserEventListener";
            // Example for message
            string message = JsonConvert.SerializeObject(new
            {
                Event      = MyEvent,
                Contact    = ContactId,
                IsZoomable = Zoomable
            });

            // For all users
            MsgChannelUtilities.PostMessageToAll(senderName, message);
        }
Beispiel #4
0
 public void PostMessageToAll(string senderName, string messageText)
 {
     MsgChannelUtilities.PostMessageToAll(senderName, messageText);
 }