本文整理汇总了C#中ServerInfo.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# ServerInfo.ToString方法的具体用法?C# ServerInfo.ToString怎么用?C# ServerInfo.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ServerInfo
的用法示例。
在下文中一共展示了ServerInfo.ToString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QueryFinished
public void QueryFinished(ServerInfo server, string status, int httpStatusCode = 0, string diagnostics = null)
{
if (this.IsEnabled())
{
this.QueryFinished(server.ToString(), status, httpStatusCode, diagnostics);
}
}
示例2: ReceivedResponseHeaders
public void ReceivedResponseHeaders(ServerInfo server)
{
if (this.IsEnabled())
{
this.ReceivedResponseHeaders(server.ToString());
}
}
示例3: ServerFailureResponse
public void ServerFailureResponse(ServerInfo server, HttpResponseMessage responseMessage)
{
this.QueryFinished(server.ToString(), RequestStatus.ServerFailureResponse.ToString(), (int)responseMessage.StatusCode, responseMessage.ReasonPhrase);
}
示例4: RequestException
public void RequestException(ServerInfo server, Exception ex)
{
this.QueryFinished(server.ToString(), RequestStatus.RequestException.ToString(), 0, ex.ToString());
}
示例5: QueryTimedOut
public void QueryTimedOut(ServerInfo server)
{
this.QueryFinished(server.ToString(), RequestStatus.TimedOut.ToString());
}
示例6: ReceivedResponseBody
public void ReceivedResponseBody(ServerInfo server, long responseSize)
{
if (this.IsEnabled(EventLevel.Verbose, EventKeywords.None))
{
this.ReceivedResponseBody(server.ToString(), responseSize);
}
}