1 write to Name
Microsoft.Extensions.Logging.Abstractions (1)
EventId.cs (1)
53Name = name;
229 references to Name
Aspire.Dashboard.Tests (2)
Integration\FrontendBrowserTokenAuthTests.cs (1)
100var log = testSink.Writes.Single(s => s.LoggerName == typeof(FrontendCompositeAuthenticationHandler).FullName && s.EventId.Name == "AuthenticationSchemeNotAuthenticatedWithFailure");
Integration\FrontendOpenIdConnectAuthTests.cs (1)
89var log = testSink.Writes.Single(s => s.LoggerName == typeof(FrontendCompositeAuthenticationHandler).FullName && s.EventId.Name == "AuthenticationSchemeNotAuthenticatedWithFailure");
IIS.Tests (1)
ClientDisconnectTests.cs (1)
347Assert.Single(TestSink.Writes, w => w.EventId.Name == "ConnectionDisconnect");
InMemory.FunctionalTests (21)
BadHttpRequestTests.cs (4)
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\Http2ConnectionTests.cs (3)
39Assert.Equal(0, LogMessages.Count(m => m.EventId.Name == "Http2MaxConcurrentStreamsReached")); 43Assert.Equal(1, LogMessages.Count(m => m.EventId.Name == "Http2MaxConcurrentStreamsReached")); 48Assert.Equal(1, LogMessages.Count(m => m.EventId.Name == "Http2MaxConcurrentStreamsReached"));
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");
ResponseTests.cs (7)
907if (context.EventId.Name == "ConnectionHeadResponseBodyWrite") 939var logMessage = Assert.Single(LogMessages, message => message.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");
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (3)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted)))) 91if (eventId.Id == 14 && eventId.Name == "ConnectionError")
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
349w.EventId.Name == "StreamPooled");
Microsoft.AspNetCore.Authorization.Test (2)
DefaultAuthorizationServiceTests.cs (2)
1192Assert.Equal("UserAuthorizationFailed", eventId.Name); 1225Assert.Equal("UserAuthorizationFailed", eventId.Name);
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.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 (1)
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
389Assert.All(TestSink.Writes, context => Assert.Equal("RequiredParameterNotProvided", context.EventId.Name));
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.Mvc.FunctionalTests (1)
ApiExplorerTest.cs (1)
1562Assert.Contains(TestSink.Writes, w => w.EventId.Name?.Equals("ApiDescriptionProviderExecuting", StringComparison.Ordinal) == true);
Microsoft.AspNetCore.Routing.Tests (8)
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"));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
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")
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (3)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted)))) 91if (eventId.Id == 14 && eventId.Name == "ConnectionError")
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (3)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted)))) 91if (eventId.Id == 14 && eventId.Name == "ConnectionError")
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (8)
QuicConnectionListenerTests.cs (5)
82var serverFailureLogTask = WaitForLogMessage(m => m.EventId.Name == "ConnectionListenerAcceptConnectionFailed"); 187Assert.Contains(LogMessages, m => m.EventId.Name == "ConnectionListenerCertificateNotSpecified"); 188Assert.Contains(LogMessages, m => m.EventId.Name == "ConnectionListenerApplicationProtocolsNotSpecified"); 206Assert.Contains(LogMessages, m => m.EventId.Name == "ConnectionListenerAborted"); 224Assert.Contains(LogMessages, m => m.EventId.Name == "ConnectionListenerAborted");
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (3)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted)))) 91if (eventId.Id == 14 && eventId.Name == "ConnectionError")
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.Extensions.Http.Diagnostics.Tests (6)
Logging\AcceptanceTests.cs (2)
624r => Assert.Equal("RequestPipelineStart", r.Id.Name), 625r => Assert.Equal("RequestPipelineEnd", r.Id.Name));
Logging\HttpClientLoggerTest.cs (4)
780Assert.Equal(nameof(Log.EnrichmentError), logRecords[0].Id.Name); 783Assert.Equal(nameof(Log.OutgoingRequest), logRecords[1].Id.Name); 825Assert.Equal(nameof(Log.EnrichmentError), logRecords[0].Id.Name); 828Assert.Equal(nameof(Log.OutgoingRequestError), logRecords[1].Id.Name);
Microsoft.Extensions.Logging.Abstractions (1)
EventId.cs (1)
69return Name ?? Id.ToString();
Microsoft.Extensions.Logging.EventSource (3)
EventSourceLogger.cs (3)
104eventId.Name, 122eventId.Name, 154eventId.Name,
Microsoft.Gen.Logging.Generated.Tests (4)
LogMethodTests.cs (4)
286Assert.Equal("M7", logRecord.Id.Name); 297Assert.Equal("EN1", logRecord.Id.Name); 568Assert.Equal("CustomEventName", collector.LatestRecord.Id.Name); 579Assert.Equal("M1_Event", logRecord.Id.Name);
Sockets.BindTests (3)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (3)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted)))) 91if (eventId.Id == 14 && eventId.Name == "ConnectionError")
Sockets.FunctionalTests (19)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (3)
82((eventId.Id == 16 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsClosedGracefully)) || 83(eventId.Id == 21 && eventId.Name == nameof(KestrelTrace.NotAllConnectionsAborted)))) 91if (eventId.Id == 14 && eventId.Name == "ConnectionError")
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 (2)
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 (10)
346Assert.Equal(1, TestSink.Writes.Count(w => w.EventId.Name == "ConnectionStop")); 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"));