Skip to content
代码片段 群组 项目
未验证 提交 bc148a07 编辑于 作者: BrennanConroy's avatar BrennanConroy 提交者: GitHub
浏览文件

Incorrect nameof usage (#2967)

上级 8a8d1e7d
No related branches found
No related tags found
无相关合并请求
......@@ -11,6 +11,7 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Connections;
using Microsoft.AspNetCore.Http.Connections;
using Microsoft.AspNetCore.Http.Connections.Client;
using Microsoft.AspNetCore.Http.Connections.Client.Internal;
using Microsoft.AspNetCore.SignalR.Protocol;
using Microsoft.AspNetCore.SignalR.Tests;
using Microsoft.AspNetCore.Testing.xunit;
......@@ -398,10 +399,10 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests
{
bool ExpectedErrors(WriteContext writeContext)
{
var firstLogCheck = (writeContext.LoggerName == nameof(Http.Connections.Client.Internal.ServerSentEventsTransport) ||
writeContext.LoggerName == nameof(Http.Connections.Client.Internal.LongPollingTransport)) &&
var firstLogCheck = (writeContext.LoggerName == typeof(ServerSentEventsTransport).FullName ||
writeContext.LoggerName == typeof(LongPollingTransport).FullName) &&
writeContext.EventId.Name == "ErrorSending";
var secondLogCheck = writeContext.LoggerName == nameof(Http.Connections.Client.HttpConnection) &&
var secondLogCheck = writeContext.LoggerName == typeof(HttpConnection).FullName &&
writeContext.EventId.Name == "TransportThrewExceptionOnStop";
return firstLogCheck || secondLogCheck;
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册