當前位置: 首頁>>代碼示例>>C#>>正文


C# TokenMessage.ToString方法代碼示例

本文整理匯總了C#中Polarsoft.Diplomacy.Daide.TokenMessage.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# TokenMessage.ToString方法的具體用法?C# TokenMessage.ToString怎麽用?C# TokenMessage.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Polarsoft.Diplomacy.Daide.TokenMessage的用法示例。


在下文中一共展示了TokenMessage.ToString方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: ProcessREJ_Unexpected

 /// <summary>Processes an unexpected REJ message.
 /// The default version sends the message to the log.
 /// </summary>
 /// <param name="msg">The REJ message.</param>
 /// <param name="rejectMessage">The message that was unexpected.</param>
 protected virtual void ProcessREJ_Unexpected(TokenMessage msg, TokenMessage rejectMessage)
 {
     Trace.WriteLineIf( baseBotSwitch.Enabled,
         string.Format(CultureInfo.InvariantCulture,
         ErrorMessages.Basebot_Trace_UnexpectedMessage,
         "REJ", msg.ToString()), traceCategory);
     Debug.Assert(false);
 }
開發者ID:trojanguard25,項目名稱:diplomacy,代碼行數:13,代碼來源:BaseBot.cs

示例2: ProcessYES_Unexpected

 /// <summary>Processes an unexpected YES message.
 /// The default version sends the message to the log.
 /// </summary>
 /// <param name="msg">The YES message.</param>
 /// <param name="confirmedMessage">The message that was unexpected.</param>
 protected virtual void ProcessYES_Unexpected(TokenMessage msg, TokenMessage confirmedMessage)
 {
     Trace.WriteLineIf(baseBotSwitch.Enabled,
         string.Format(CultureInfo.InvariantCulture,
         ErrorMessages.Basebot_Trace_UnexpectedMessage,
         "YES", msg.ToString()), traceCategory);
 }
開發者ID:trojanguard25,項目名稱:diplomacy,代碼行數:12,代碼來源:BaseBot.cs

示例3: ProcessREJ_TME

 /// <summary>Processes a REJ TME message (a rejected TME message).
 /// The default version sends the message to the log.
 /// </summary>
 /// <param name="msg">The REJ message.</param>
 /// <param name="rejectMessage">The TME message.</param>
 protected virtual void ProcessREJ_TME(TokenMessage msg, TokenMessage rejectMessage)
 {
     Trace.WriteLineIf( baseBotSwitch.Enabled,
         string.Format(CultureInfo.InvariantCulture,
         ErrorMessages.Basebot_Trace_MessageRejected,
         msg.ToString()), traceCategory);
 }
開發者ID:trojanguard25,項目名稱:diplomacy,代碼行數:12,代碼來源:BaseBot.cs


注:本文中的Polarsoft.Diplomacy.Daide.TokenMessage.ToString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。