コード例 #1
0
ファイル: Notification.cs プロジェクト: xxjeng/nuxleus
 public static byte[] Serialize (Notification notification, Encoding encoding)
 {
     return encoding.GetBytes(notification.ToString());
 }
コード例 #2
0
ファイル: Notification.cs プロジェクト: xxjeng/nuxleus
 public static byte[] Serialize (Notification notification)
 {
     return Encoding.UTF8.GetBytes(notification.ToString());
 }
コード例 #3
0
ファイル: PostOffice.cs プロジェクト: xxjeng/nuxleus
 /// <summary>
 /// Notify that a notification is ready to be processed.
 /// </summary>
 public void Post (Notification n) {
     if (Mailbox != null) {
         Mailbox(n);
     }
 }