本文整理匯總了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);
}