本文整理汇总了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);
}
示例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);
}
示例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);
}