Ejemplo n.º 1
0
 /// <summary> Send back the reply with given priority.
 /// </summary>
 /// <param name="replyBody"> the content of the reply
 /// (it can be null, in which case the empty object is sent) </param>
 /// <param name="priority"> the priority of reply </param>
 /// <exception cref="YAMIIOException">If the reply channel cannot be
 /// established </exception>
 /// <exception cref="BadStateException">If the reply was
 /// already sent.</exception>
 public virtual void Reply(
     YAMISerializable replyBody, int priority)
 {
     if (alreadyUsed)
     {
         throw new BadStateException("incoming message");
     }
     agent.doSendReply(sourceName, messageId, replyBody, priority);
     alreadyUsed = true;
 }
Ejemplo n.º 2
0
 /// <summary> Send back the reply with given priority.
 /// </summary>
 /// <param name="replyBody"> the content of the reply
 /// (it can be null, in which case the empty object is sent) </param>
 /// <param name="priority"> the priority of reply </param>
 /// <exception cref="YAMIIOException">If the reply channel cannot be 
 /// established </exception>
 /// <exception cref="BadStateException">If the reply was
 /// already sent.</exception>
 public virtual void Reply(
     YAMISerializable replyBody, int priority)
 {
     if (alreadyUsed)
     {
         throw new BadStateException("incoming message");
     }
     agent.doSendReply(sourceName, messageId, replyBody, priority);
     alreadyUsed = true;
 }
Ejemplo n.º 3
0
 /// <summary> Send back the reply with default (lowest) priority.
 /// </summary>
 /// <param name="replyBody"> the content of the reply
 /// (it can be null, in which case the empty object is sent) </param>
 /// <exception cref="YAMIIOException"> 
 /// if the reply channel cannot be established </exception>
 /// <exception cref="BadStateException">If the reply was
 /// already sent.</exception>
 public virtual void Reply(YAMISerializable replyBody)
 {
     Reply(replyBody, 0);
 }
Ejemplo n.º 4
0
 /// <summary> Send back the reply with default (lowest) priority.
 /// </summary>
 /// <param name="replyBody"> the content of the reply
 /// (it can be null, in which case the empty object is sent) </param>
 /// <exception cref="YAMIIOException">
 /// if the reply channel cannot be established </exception>
 /// <exception cref="BadStateException">If the reply was
 /// already sent.</exception>
 public virtual void Reply(YAMISerializable replyBody)
 {
     Reply(replyBody, 0);
 }