コード例 #1
0
ファイル: MessageService.cs プロジェクト: someone243/CupCake
 private void OnAnySendEvent(object sender, SendEvent e)
 {
     this.Events.Raise(e);
 }
コード例 #2
0
ファイル: MessageService.cs プロジェクト: someone243/CupCake
 private void OnSendEvent(SendEvent e)
 {
     if (!e.Cancelled)
     {
         this.ConnectionPlatform.Connection.Send(e.GetMessage());
     }
 }
コード例 #3
0
ファイル: RoomService.cs プロジェクト: KylerM/CupCake
 private void OnSend(object sender, SendEvent e)
 {
     var encryptedSend = e as IEncryptedSendEvent;
     if (encryptedSend != null && String.IsNullOrEmpty(encryptedSend.Encryption))
     {
         encryptedSend.Encryption = this.Encryption;
     }
 }