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