public void ReceiveNotification(string title, string message)
        {
            var args = new NotificationEventArg()
            {
                Title   = title,
                Message = message,
            };

            NotificationReceived?.Invoke(null, args);
        }
Exemplo n.º 2
0
 private static void NameManagerOnOnNotification(object sender, NotificationEventArg notificationEventArg)
 {
     //log the message
     Console.WriteLine(notificationEventArg.Message);
 }
Exemplo n.º 3
0
 //logları yazdırmak için
 private static void NameManagerOnOnNotification(object sender, NotificationEventArg notificationEventArg)
 {
     //Dönen mesajı bastırıyoruz
     Console.WriteLine(notificationEventArg.Message);
 }