コード例 #1
0
ファイル: PmlCommunicator2.cs プロジェクト: UCIS/UCIS.Core
 public override void WriteMessage(PmlElement message)
 {
     if (_state != ChannelState.Acknowledged)
     {
         throw new InvalidOperationException("The subchannel is not open");
     }
     _communicator.WriteSessionMessage(_id, 1, message);
 }
コード例 #2
0
ファイル: PmlCommunicator2.cs プロジェクト: UCIS/UCIS.Core
 public override void Reject()
 {
     if (_accepted)
     {
         throw new InvalidOperationException("The channel has already been accepted");
     }
     if (_rejected)
     {
         return;
     }
     _rejected = true;
     _communicator.WriteSessionMessage(_sid, 2, null);
 }