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