本文整理匯總了C#中ZyGames.Framework.Game.Service.BaseGameResponse.WriteError方法的典型用法代碼示例。如果您正苦於以下問題:C# BaseGameResponse.WriteError方法的具體用法?C# BaseGameResponse.WriteError怎麽用?C# BaseGameResponse.WriteError使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ZyGames.Framework.Game.Service.BaseGameResponse
的用法示例。
在下文中一共展示了BaseGameResponse.WriteError方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: DoAction
/// <summary>
///
/// </summary>
/// <param name="actionGetter"></param>
/// <param name="response"></param>
protected void DoAction(ActionGetter actionGetter, BaseGameResponse response)
{
if (GameEnvironment.IsRunning)
{
OnRequested(actionGetter, response);
ActionFactory.Request(actionGetter, response);
}
else
{
response.WriteError(actionGetter, Language.Instance.ErrorCode, Language.Instance.ServerMaintain);
}
}
示例2: WriteErrorAction
/// <summary>
/// 輸出一個錯誤的Action 與 相應錯誤內容描述
/// </summary>
public void WriteErrorAction(BaseGameResponse response)
{
logActionResult += errorCode + "-";
if (string.IsNullOrEmpty(errorInfo))
{
logActionResult += DefaultErrorInfo + "-";
}
else
{
logActionResult += errorInfo + "-";
}
this.iVisitEndTime = DateTime.Now;
WatchAction();
this.SaveActionLogToDB(LogActionStat.Fail, logActionResult);
if (!IsNotRespond)
{
response.WriteError(actionGetter, errorCode, errorInfo);
}
//dataStruct.WriteAction(response, actionId, errorCode, errorInfo, MsgId, St);
}