2 writes to EventId
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLogger.cs (1)
52EventId = eventId,
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\LogSinkProvider.cs (1)
40EventId = eventId,
301 references to EventId
IIS.Tests (3)
ClientDisconnectTests.cs (1)
347Assert.Single(TestSink.Writes, w => w.EventId.Name == "ConnectionDisconnect");
MaxRequestBodySizeTests.cs (2)
358var badRequestLog = Assert.Single(TestSink.Writes, w => w.LoggerName == "Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer" && w.EventId == new EventId(4, "ConnectionBadRequest")); 360Assert.Equal(new EventId(2, "ApplicationError"), appErrorLog.EventId);
InMemory.FunctionalTests (22)
BadHttpRequestTests.cs (5)
228Assert.Contains(TestSink.Writes, w => w.EventId.Id == 17); 319if (context.EventId.Name == "ConnectionBadRequest" && context.Exception is BadHttpRequestException ex) 377if (context.EventId.Name == "ConnectionBadRequest" && context.Exception is BadHttpRequestException ex) 443if (context.EventId.Name == "ConnectionBadRequest" && context.Exception is BadHttpRequestException ex) 518if (context.EventId.Name == "ConnectionBadRequest" && context.Exception is BadHttpRequestException ex)
Http2\Http2StreamTests.cs (1)
4723Assert.Contains(TestSink.Writes, w => w.EventId.Id == 13 && w.LogLevel == LogLevel.Error
Http2\Http2TestBase.cs (2)
406if (context.EventId.Name == "Http2ConnectionClosing") 410if (context.EventId.Name == "Http2ConnectionClosed")
Http2\Http2TimeoutTests.cs (1)
234Assert.Contains(TestSink.Writes, w => w.EventId.Name == "ResponseMinimumDataRateNotSatisfied");
Http3\Http3TimeoutTests.cs (1)
418Assert.Contains(TestSink.Writes, w => w.EventId.Name == "ResponseMinimumDataRateNotSatisfied");
RequestBodyTimeoutTests.cs (2)
143Assert.Contains(TestSink.Writes, w => w.EventId.Id == 32 && w.LogLevel == LogLevel.Information); 144Assert.Contains(TestSink.Writes, w => w.EventId.Id == 33 && w.LogLevel == LogLevel.Information);
ResponseTests.cs (10)
510Assert.Contains(TestSink.Writes, w => w.EventId.Id == 17 && w.LogLevel <= LogLevel.Debug && w.Exception is BadHttpRequestException 907if (context.EventId.Name == "ConnectionHeadResponseBodyWrite") 1109if (context.EventId.Name == "ApplicationError") 1149m => m.EventId.Name == "ApplicationError" && 1163if (context.EventId.Name == "ApplicationError") 1206m => m.EventId.Name == "ApplicationError" && 1257Assert.DoesNotContain(TestSink.Writes, c => c.EventId.Name == "ApplicationError"); 4133Assert.Contains(TestSink.Writes, w => w.EventId.Id == 13 && w.LogLevel == LogLevel.Error 4764Assert.Contains(testSink.Writes, w => w.EventId.Id == 17 && w.LogLevel <= LogLevel.Debug && w.Exception is BadHttpRequestException 4770Assert.DoesNotContain(testSink.Writes, w => w.EventId.Id == 17);
Interop.FunctionalTests (3)
Http3\Http3RequestTests.cs (3)
350w.EventId.Name == "StreamPooled"); 1817w.EventId == applicationAbortedConnectionId); 1906w.EventId == applicationAbortedConnectionId));
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionHandlerTest.cs (1)
655&& w.EventId == 4
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (8)
JsonTranscodingServiceMethodProviderTests.cs (1)
119if (w.EventId.Name != "HttpRuleFound")
ServerStreamingServerCallHandlerTests.cs (3)
119var exceptionWrite = TestSink.Writes.Single(w => w.EventId.Name == "ErrorExecutingServiceMethod"); 161var exceptionWrite = TestSink.Writes.Single(w => w.EventId.Name == "RpcConnectionError"); 198var exceptionWrite = TestSink.Writes.Single(w => w.EventId.Name == "ErrorExecutingServiceMethod");
UnaryServerCallHandlerTests.cs (4)
869var exceptionWrite = TestSink.Writes.Single(w => w.EventId.Name == "RpcConnectionError"); 1056var exceptionWrite = TestSink.Writes.Single(w => w.EventId.Name == "ErrorExecutingServiceMethod"); 1086var exceptionWrite = TestSink.Writes.Single(w => w.EventId.Name == "ErrorExecutingServiceMethod"); 1626var exceptionWrite = TestSink.Writes.Single(w => w.EventId.Name == "RpcConnectionError");
Microsoft.AspNetCore.Hosting.Tests (5)
HostingApplicationDiagnosticsTests.cs (3)
1065var startLog = testSink.Writes.Single(w => w.EventId == LoggerEventIds.RequestStarting); 1066var unhandedLog = testSink.Writes.Single(w => w.EventId == LoggerEventIds.RequestUnhandled); 1067var endLog = testSink.Writes.Single(w => w.EventId == LoggerEventIds.RequestFinished);
WebHostBuilderTests.cs (2)
313var context = provider.Sink.Writes.Where(s => s.EventId.Id == LoggerEventIds.HostingStartupAssemblyException); 1209var context = provider.Sink.Writes.FirstOrDefault(s => s.EventId.Id == LoggerEventIds.HostingStartupAssemblyException);
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (6)
1030writeContext.EventId.Name == "FailedDispose"; 1274writeContext.EventId.Name == "LongPollingTerminated") || 1275(writeContext.LoggerName == typeof(HttpConnectionManager).FullName && writeContext.EventId.Name == "FailedDispose"); 1361writeContext.EventId.Name == "ErrorWritingFrame"; 2719writeContext.EventId.Name == "LongPollingTerminated") || 2721writeContext.EventId.Name == "FailedDispose");
Microsoft.AspNetCore.Http.Extensions.Tests (33)
RequestDelegateFactoryTests.cs (4)
1583Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), log.EventId); 1682Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), log.EventId); 1948Assert.Equal(new EventId(1, "RequestBodyIOException"), logMessage.EventId); 1981Assert.Equal(new EventId(1, "RequestBodyIOException"), logMessage.EventId);
RequestDelegateGenerator\CompileTimeCreationTests.cs (3)
389Assert.All(TestSink.Writes, context => Assert.Equal("RequiredParameterNotProvided", context.EventId.Name)); 565Assert.Equal(new EventId(5, "ImplicitBodyNotProvided"), log1.EventId); 573Assert.Equal(new EventId(5, "ImplicitBodyNotProvided"), log2.EventId);
RequestDelegateGenerator\RequestDelegateCreationTests.AsParameters.cs (3)
393Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[0].EventId); 397Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[1].EventId); 401Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[2].EventId);
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (1)
144Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), log.EventId);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (3)
345Assert.Equal(new EventId(7, "UnexpectedContentType"), logMessage.EventId); 941Assert.Equal(new EventId(1, "RequestBodyIOException"), logMessage.EventId); 975Assert.Equal(new EventId(8, "InvalidFormRequestBody"), logMessage.EventId);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (1)
476Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), log.EventId);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (1)
133Assert.Equal(new EventId(5, "ImplicitBodyNotProvided"), log.EventId);
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (15)
49Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[0].EventId); 57Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[1].EventId); 65Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[2].EventId); 73Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[3].EventId); 112Assert.Equal(new EventId(3, "ParameterBindingFailed"), logs[0].EventId); 120Assert.Equal(new EventId(3, "ParameterBindingFailed"), logs[1].EventId); 232Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[0].EventId); 240Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[1].EventId); 312Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[0].EventId); 320Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[1].EventId); 402Assert.Equal(new EventId(6, "UnexpectedContentType"), logMessage.EventId); 451Assert.Equal(new EventId(6, "UnexpectedContentType"), logMessage.EventId); 492Assert.Equal(new EventId(1, "RequestBodyIOException"), logMessage.EventId); 530Assert.Equal(new EventId(2, "InvalidJsonRequestBody"), logMessage.EventId); 610Assert.Equal(new EventId(2, "InvalidJsonRequestBody"), logMessage.EventId);
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (1)
69Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), log.EventId);
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (1)
183Assert.Equal(new EventId(10, "FormMappingFailed"), log.EventId);
Microsoft.AspNetCore.Http.Tests (1)
ApplicationBuilderTests.cs (1)
124Assert.DoesNotContain(TestSink.Writes, w => w.EventId.Name == "RequestPipelineEnd");
Microsoft.AspNetCore.HttpLogging.Tests (2)
FileLoggerProcessorTests.cs (2)
239await WaitForCondition(() => testSink.Writes.FirstOrDefault()?.EventId.Name == "MaxFilesReached").DefaultTimeout(); 255await WaitForCondition(() => testSink2.Writes.FirstOrDefault()?.EventId.Name == "MaxFilesReached").DefaultTimeout();
Microsoft.AspNetCore.Identity.FunctionalTests (4)
MapIdentityApiTests.cs (4)
445w.EventId == new EventId(3, "UserLockedOut")); 472w.EventId == new EventId(3, "UserLockedOut")); 499w.EventId == new EventId(4, "UserCannotSignInWithoutConfirmedAccount")); 524w.EventId == new EventId(0, "UserCannotSignInWithoutConfirmedEmail"));
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ApiExplorerTest.cs (1)
1562Assert.Contains(TestSink.Writes, w => w.EventId.Name?.Equals("ApiDescriptionProviderExecuting", StringComparison.Ordinal) == true);
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
264Assert.Equal(expectedMessages[i].EventId, messageList[i].EventId);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
250Assert.Equal(expectedMessages[i].EventId, messageList[i].EventId);
Microsoft.AspNetCore.Routing.Tests (21)
EndpointRoutingMiddlewareTest.cs (8)
87var write = Assert.Single(sink.Writes.Where(w => w.EventId.Name == "MatchSuccess")); 259var write = Assert.Single(sink.Writes.Where(w => w.EventId.Name == "FallbackMatch")); 264Assert.DoesNotContain(sink.Writes, w => w.EventId.Name == "FallbackMatch"); 293var write = Assert.Single(sink.Writes.Where(w => w.EventId.Name == "RequestSizeFeatureIsReadOnly")); 322var write = Assert.Single(sink.Writes.Where(w => w.EventId.Name == "RequestSizeFeatureNotFound")); 350var write = Assert.Single(sink.Writes.Where(w => w.EventId.Name == "RequestSizeLimitMetadataNotFound")); 384var write = Assert.Single(sink.Writes.Where(w => w.EventId.Name == "MaxRequestBodySizeDisabled")); 389var write = Assert.Single(sink.Writes.Where(w => w.EventId.Name == "MaxRequestBodySizeSet"));
Matching\DfaMatcherTest.cs (13)
803Assert.Equal(1000, log.EventId); 833Assert.Equal(1001, log.EventId); 838Assert.Equal(1003, log.EventId); 843Assert.Equal(1004, log.EventId); 873Assert.Equal(1001, log.EventId); 878Assert.Equal(1002, log.EventId); 883Assert.Equal(1004, log.EventId); 915Assert.Equal(1001, log.EventId); 920Assert.Equal(1005, log.EventId); 925Assert.Equal(1003, log.EventId); 930Assert.Equal(1004, log.EventId); 935Assert.Equal(1002, log.EventId); 940Assert.Equal(1004, log.EventId);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
CertificatePathWatcherTests.cs (2)
374if (writeContext.EventId.Name == "EventWithoutFile") 474var writeContext = Assert.Single(testSink.Writes.Where(wc => wc.EventId.Name == eventName));
HeartbeatTests.cs (1)
179Assert.DoesNotContain(TestSink.Writes, w => w.EventId.Name == "HeartbeatSlow");
HttpConnectionManagerTests.cs (2)
36Assert.Single(TestSink.Writes.Where(c => c.EventId.Name == "ApplicationNeverCompleted")); 56Assert.DoesNotContain(TestSink.Writes, c => c.EventId.Name == "ApplicationNeverCompleted");
MessageBodyTests.cs (3)
779m => m.EventId.Name == "ConnectionBadRequest" && 838m => m.EventId.Name == "RequestBodyStart" && 854if (context.EventId.Name == "RequestBodyDone")
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (22)
HubConnectionTests.cs (20)
128writeContext.EventId.Name == "ErrorWithNegotiation"; 646writeContext.EventId.Name == "FailedInvokingHubMethod"; 1042writeContext.EventId.Name == "FailedInvokingHubMethod"; 1358return write.EventId.Name == "FailedWritingMessage" || write.EventId.Name == "ReceivedCloseWithError" 1359|| write.EventId.Name == "ShutdownWithError"; 1389var errorLog = server.GetLogs().SingleOrDefault(r => r.Write.EventId.Name == "FailedWritingMessage"); 1412return write.EventId.Name == "FailedWritingMessage" || write.EventId.Name == "ReceivedCloseWithError" 1413|| write.EventId.Name == "ShutdownWithError"; 1443var errorLog = server.GetLogs().SingleOrDefault(r => r.Write.EventId.Name == "FailedWritingMessage"); 1863await using (var server = await StartServer<Startup>(context => context.EventId.Name == "ErrorStartingTransport", 2140writeContext.EventId.Name == "ReconnectingWithError"; 2201writeContext.EventId.Name == "ReconnectingWithError"; 2261writeContext.EventId.Name == "ReconnectingWithError"; 2554await using (var server = await StartServer<Startup>(w => w.EventId.Name == "ReceivedUnexpectedResponse")) 2613await using (var server = await StartServer<Startup>(w => w.EventId.Name == "ReceivedUnexpectedResponse")) 2736var changeLog = Assert.Single(TestSink.Writes.Where(w => w.EventId.Name == "UserNameChanged")); 2852(writeContext.EventId.Name == "ShutdownWithError" || 2853writeContext.EventId.Name == "ServerDisconnectedWithError");
HubConnectionTests.Tracing.cs (2)
471writeContext.EventId.Name == "FailedInvokingHubMethod"; 567writeContext.EventId.Name == "FailedInvokingHubMethod";
Microsoft.AspNetCore.SignalR.Client.Tests (60)
HttpConnectionTests.ConnectionLifecycle.cs (5)
85writeContext.EventId.Name == "ErrorStartingTransport"; 136writeContext.EventId.Name == "ErrorStartingTransport"; 286writeContext.EventId.Name == "ErrorSending"; 328writeContext.EventId.Name == "ErrorStartingTransport"; 486writeContext.EventId.Name == "ErrorStartingTransport";
HttpConnectionTests.cs (2)
162Assert.Equal("SendingHttpRequest", writeList[0].EventId.Name); 163Assert.Equal("UnsuccessfulHttpResponse", writeList[1].EventId.Name);
HttpConnectionTests.Negotiate.cs (1)
580writeContext.EventId.Name == "ErrorWithNegotiation";
HubConnectionTests.ConnectionLifecycle.cs (6)
157if (writeContext.EventId.Name == "ErrorReceivingHandshakeResponse") 163return writeContext.EventId.Name == "ErrorStartingConnection"; 496if (writeContext.EventId.Name == "ErrorHandshakeTimedOut") 502return writeContext.EventId.Name == "ErrorStartingConnection"; 563if (writeContext.EventId.Name == "ErrorHandshakeCanceled") 569return writeContext.EventId.Name == "ErrorStartingConnection";
HubConnectionTests.cs (9)
31writeContext.EventId.Name == "FailedToSendInvocation"; 147(writeContext.EventId.Name == "ShutdownWithError" || 148writeContext.EventId.Name == "ServerDisconnectedWithError"); 351writeContext.EventId.Name == "ShutdownWithError"; 408writeContext.EventId.Name == "ShutdownWithError"; 621if (wc.EventId.Name == "CompletingStreamNotSent") 668(writeContext.EventId.Name == "ServerDisconnectedWithError" 669|| writeContext.EventId.Name == "ShutdownWithError"); 828if (wc.EventId.Name == "ErrorSendingInvocationResult")
HubConnectionTests.Reconnect.cs (36)
34(writeContext.EventId.Name == "ShutdownWithError" || 35writeContext.EventId.Name == "ServerDisconnectedWithError"); 75(writeContext.EventId.Name == "ServerDisconnectedWithError" || 76writeContext.EventId.Name == "ReconnectingWithError"); 189(writeContext.EventId.Name == "ServerDisconnectedWithError" || 190writeContext.EventId.Name == "ReconnectingWithError"); 284(writeContext.EventId.Name == "ServerDisconnectedWithError" || 285writeContext.EventId.Name == "ReconnectingWithError"); 361var attemptsLog = logs.SingleOrDefault(r => r.Write.EventId.Name == "ReconnectAttemptsExhausted"); 366var waitingLog = logs.SingleOrDefault(r => r.Write.EventId.Name == "AwaitingReconnectRetryDelay"); 381(writeContext.EventId.Name == "ServerDisconnectedWithError" || 382writeContext.EventId.Name == "ReconnectingWithError"); 477(writeContext.EventId.Name == "ReceivedCloseWithError" || 478writeContext.EventId.Name == "ReconnectingWithError"); 561(writeContext.EventId.Name == "ReceivedCloseWithError" || 562writeContext.EventId.Name == "ShutdownWithError"); 623writeContext.EventId.Name == "ServerDisconnectedWithError"; 677(writeContext.EventId.Name == "ErrorReceivingHandshakeResponse" || 678writeContext.EventId.Name == "ErrorStartingConnection"); 733(writeContext.EventId.Name == "ServerDisconnectedWithError" || 734writeContext.EventId.Name == "ReconnectingWithError" || 735writeContext.EventId.Name == "ErrorReceivingHandshakeResponse" || 736writeContext.EventId.Name == "ErrorStartingConnection"); 839(writeContext.EventId.Name == "ServerDisconnectedWithError" || 840writeContext.EventId.Name == "ReconnectingWithError" || 841writeContext.EventId.Name == "ErrorReceivingHandshakeResponse" || 842writeContext.EventId.Name == "HandshakeServerError" || 843writeContext.EventId.Name == "ErrorStartingConnection"); 959(writeContext.EventId.Name == "ServerDisconnectedWithError" || 960writeContext.EventId.Name == "ReconnectingWithError" || 961writeContext.EventId.Name == "ErrorHandshakeCanceled" || 962writeContext.EventId.Name == "ErrorStartingConnection"); 1050(writeContext.EventId.Name == "ServerDisconnectedWithError" || 1051writeContext.EventId.Name == "ReconnectingWithError" || 1052writeContext.EventId.Name == "ErrorReceivingHandshakeResponse" || 1053writeContext.EventId.Name == "ErrorStartingConnection");
ServerSentEventsTransportTests.cs (1)
167writeContext.EventId.Name == "ErrorSending";
Microsoft.AspNetCore.SignalR.Tests (35)
EndToEndTests.cs (7)
56writeContext.EventId.Name == "ErrorStartingTransport"; 379writeContext.EventId.Name == "ErrorWithNegotiation"; 403writeContext.EventId.Name == "ErrorStartingTransport"; 433writeContext.EventId.Name == "ErrorWithNegotiation"; 469writeContext.EventId.Name == "ErrorWithNegotiation"; 604writeContext.EventId.Name == "ErrorWithNegotiation"; 643writeContext.EventId.Name == "ErrorWithNegotiation";
HubConnectionHandlerTests.Activity.cs (4)
296writeContext.EventId.Name == "ErrorDispatchingHubEvent"; 343writeContext.EventId.Name == "ErrorDispatchingHubEvent"; 395writeContext.EventId.Name == "FailedStreaming"; 446writeContext.EventId.Name == "FailedInvokingHubMethod";
HubConnectionHandlerTests.ClientResult.cs (7)
43using (StartVerifiableLog(write => write.EventId.Name == "FailedInvokingHubMethod")) 75using (StartVerifiableLog(write => write.EventId.Name == "ErrorDispatchingHubEvent")) 96Assert.Single(TestSink.Writes.Where(write => write.EventId.Name == "ErrorDispatchingHubEvent")); 102using (StartVerifiableLog(write => write.EventId.Name == "ErrorDispatchingHubEvent")) 127Assert.Single(TestSink.Writes.Where(write => write.EventId.Name == "ErrorDispatchingHubEvent")); 395Assert.Contains(TestSink.Writes, c => c.EventId.Name == "UnexpectedCompletion"); 440Assert.Contains(TestSink.Writes, c => c.EventId.Name == "UnexpectedCompletion");
HubConnectionHandlerTests.cs (16)
734writeContext.EventId.Name == "ErrorDispatchingHubEvent"; 766writeContext.EventId.Name == "ErrorDispatchingHubEvent"; 903writeContext.EventId.Name == "FailedInvokingHubMethod"; 982writeContext.EventId.Name == "FailedInvokingHubMethod"; 1124writeContext.EventId.Name == "FailedInvokingHubMethod"; 1528writeContext.EventId.Name == "ErrorDispatchingHubEvent"; 2084writeContext.EventId.Name == "FailedStreaming"; 3136writeContext.EventId.Name == "ErrorDispatchingHubEvent"; 3209writeContext.EventId.Name == "FailedInvokingHubMethod"; 3796using (StartVerifiableLog(write => write.EventId.Name == "FailedWritingMessage")) 3817using (StartVerifiableLog(write => write.EventId.Name == "FailedWritingMessage")) 3840using (StartVerifiableLog(write => write.EventId.Name == "FailedWritingMessage")) 3959w.EventId.Name == "ClosingStreamWithBindingError")); 3984w.EventId.Name == "UnexpectedCompletion")); 4159w.EventId.Name == "ClosingStreamWithBindingError")); 4196w.EventId.Name == "ClosingStreamWithBindingError"));
HubFilterTests.cs (1)
870writeContext.EventId.Name == "FailedInvokingHubMethod";
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
ServerLogScope.cs (1)
60logger.Log(write.LogLevel, write.EventId, write.State, write.Exception, write.Formatter);
src\Shared\SignalR\VerifyNoErrorScope.cs (1)
51string lineMessage = r.LoggerName + " - " + r.EventId.ToString() + " - " + r.Formatter(r.State, r.Exception);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (30)
HealthCheckPublisherHostedServiceTest.cs (30)
222entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherProcessingBegin, entry.EventId); }, 223entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckProcessingBegin, entry.EventId); }, 224entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckBegin, entry.EventId); }, 225entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 226entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 227entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckEnd, entry.EventId); }, 228entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckProcessingEnd, entry.EventId); }, 229entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherBegin, entry.EventId); }, 230entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherEnd, entry.EventId); }, 231entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherProcessingEnd, entry.EventId); }); 487entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherProcessingBegin, entry.EventId); }, 488entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckProcessingBegin, entry.EventId); }, 489entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckBegin, entry.EventId); }, 490entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 491entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 492entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckEnd, entry.EventId); }, 493entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckProcessingEnd, entry.EventId); }, 494entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherBegin, entry.EventId); }, 495entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherTimeout, entry.EventId); }, 496entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherProcessingEnd, entry.EventId); }); 693entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherProcessingBegin, entry.EventId); }, 694entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckProcessingBegin, entry.EventId); }, 695entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckBegin, entry.EventId); }, 696entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 697entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 698entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckEnd, entry.EventId); }, 699entry => { Assert.Equal(DefaultHealthCheckEventIds.HealthCheckProcessingEnd, entry.EventId); }, 700entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherBegin, entry.EventId); }, 701entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherError, entry.EventId); }, 702entry => { Assert.Equal(HealthCheckPublisherEventIds.HealthCheckPublisherProcessingEnd, entry.EventId); });
Sockets.FunctionalTests (32)
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (4)
53if (context.EventId.Name == "Http2ConnectionClosed") 57else if (context.EventId.Name == "ConnectionReadFin") 61else if (context.EventId.Name == "ConnectionWriteFin") 116if (context.EventId.Name == "Http2ConnectionClosing")
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (14)
256if (context.EventId.Id == _connectionStartedEventId) 260else if (context.EventId.Id == _connectionReadFinEventId) 308if (context.EventId.Id == _connectionStartedEventId) 312else if (context.EventId.Id == _connectionResetEventId) 362if (context.EventId.Id == _connectionReadFinEventId) 421if (context.EventId.Id == _connectionResetEventId) 484if (context.EventId.Id == _connectionReadFinEventId) 489if (context.EventId.Id == _connectionResetEventId) 929w.EventId == applicationAbortedConnectionId)); 957if (context.EventId.Id == connectionPausedEventId) 961else if (context.EventId == connectionFinSentEventId) 965else if (context.EventId == connectionRstSentEventId) 1038Assert.Single(TestSink.Writes.Where(c => c.EventId.Name == "ConnectionStop")); 1090Assert.Single(TestSink.Writes.Where(c => c.EventId.Name == "ConnectionStop"));
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (14)
278if (context.EventId.Id == connectionPausedEventId) 346Assert.Equal(1, TestSink.Writes.Count(w => w.EventId.Name == "ConnectionStop")); 402w => w.EventId == connectionResetEventId || 403(!TestPlatformHelper.IsWindows && w.EventId == connectionFinEventId)); 412Assert.Single(coreLogs.Where(w => w.EventId == connectionStopEventId)); 487switch (context.EventId.Name) 624switch (context.EventId.Name) 742switch (context.EventId.Name) 922Assert.Equal(0, TestSink.Writes.Count(w => w.EventId.Name == "ResponseMinimumDataRateNotSatisfied")); 923Assert.Equal(1, TestSink.Writes.Count(w => w.EventId.Name == "ConnectionStop")); 1007Assert.Equal(0, TestSink.Writes.Count(w => w.EventId.Name == "ResponseMinimumDataRateNotSatisfied")); 1008Assert.Equal(1, TestSink.Writes.Count(w => w.EventId.Name == "ConnectionStop")); 1085Assert.Equal(0, TestSink.Writes.Count(w => w.EventId.Name == "ResponseMinimumDataRateNotSatisfied")); 1086Assert.Equal(1, TestSink.Writes.Count(w => w.EventId.Name == "ConnectionStop"));