Exemple #1
0
 public static byte[] Serialize (Notification notification, Encoding encoding)
 {
     return encoding.GetBytes(notification.ToString());
 }
Exemple #2
0
 public static byte[] Serialize (Notification notification)
 {
     return Encoding.UTF8.GetBytes(notification.ToString());
 }
Exemple #3
0
 /// <summary>
 /// Notify that a notification is ready to be processed.
 /// </summary>
 public void Post (Notification n) {
     if (Mailbox != null) {
         Mailbox(n);
     }
 }