163 references to EventId
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
35var eventId = new EventId(eventData.EventId, eventData.EventName);
IIS.Tests (2)
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);
Microsoft.AspNetCore.Components (2)
Infrastructure\ComponentStatePersistenceManager.cs (2)
178logger.LogError(new EventId(1000, "PersistenceCallbackError"), ex, "There was an error executing a callback while pausing the application."); 190logger.LogError(new EventId(1000, "PersistenceCallbackError"), ex, "There was an error executing a callback while pausing the application.");
Microsoft.AspNetCore.Http.Extensions.Tests (35)
RequestDelegateFactoryTests.cs (7)
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); 3204Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[0].EventId); 3208Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[1].EventId); 3212Assert.Equal(new EventId(4, "RequiredParameterNotProvided"), logs[2].EventId);
RequestDelegateGenerator\CompileTimeCreationTests.cs (2)
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.HttpLogging (3)
HttpLoggingExtensions.cs (3)
12new EventId(1, "RequestLog"), 18new EventId(2, "ResponseLog"), 43new EventId(9, "RequestResponseLog"),
Microsoft.AspNetCore.Identity (8)
EventIds.cs (8)
10public static EventId UserCannotSignInWithoutConfirmedEmail = new EventId(0, "UserCannotSignInWithoutConfirmedEmail"); 11public static EventId SecurityStampValidationFailed = new EventId(0, "SecurityStampValidationFailed"); 12public static EventId SecurityStampValidationFailedId4 = new EventId(4, "SecurityStampValidationFailed"); 13public static EventId UserCannotSignInWithoutConfirmedPhoneNumber = new EventId(1, "UserCannotSignInWithoutConfirmedPhoneNumber"); 14public static EventId InvalidPassword = new EventId(2, "InvalidPassword"); 15public static EventId UserLockedOut = new EventId(3, "UserLockedOut"); 16public static EventId UserCannotSignInWithoutConfirmedAccount = new EventId(4, "UserCannotSignInWithoutConfirmedAccount"); 17public static EventId TwoFactorSecurityStampValidationFailed = new EventId(5, "TwoFactorSecurityStampValidationFailed");
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.Identity.UI (17)
LoggerEventIds.cs (17)
16public static readonly EventId UserCreatedByExternalProvider = new EventId(1, "UserCreatedByExternalProvider"); 21public static readonly EventId UserLoggedInByExternalProvider = new EventId(2, "UserLoggedInByExternalProvider"); 26public static readonly EventId UserLogin = new EventId(3, "UserLogin"); 31public static readonly EventId UserLockout = new EventId(4, "UserLockout"); 36public static readonly EventId UserLoginWith2FA = new EventId(5, "UserLoginWith2FA"); 41public static readonly EventId InvalidAuthenticatorCode = new EventId(6, "InvalidAuthenticatorCode"); 46public static readonly EventId UserLoginWithRecoveryCode = new EventId(7, "UserLoginWithRecoveryCode"); 51public static readonly EventId InvalidRecoveryCode = new EventId(8, "InvalidRecoveryCode"); 56public static readonly EventId PasswordChanged = new EventId(9, "PasswordChanged"); 61public static readonly EventId UserDeleted = new EventId(10, "UserDeleted"); 66public static readonly EventId TwoFADisabled = new EventId(11, "TwoFADisabled"); 71public static readonly EventId PersonalDataRequested = new EventId(12, "PersonalDataRequested"); 76public static readonly EventId TwoFAEnabled = new EventId(13, "TwoFAEnabled"); 81public static readonly EventId TwoFARecoveryGenerated = new EventId(14, "TwoFARecoveryGenerated"); 86public static readonly EventId AuthenticationAppKeyReset = new EventId(15, "AuthenticationAppKeyReset"); 91public static readonly EventId UserCreated = new EventId(16, "UserCreated"); 96public static readonly EventId UserLoggedOut = new EventId(17, "UserLoggedOut");
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Internal\RedisLog.cs (1)
73logger.LogDebug(new EventId(100, "RedisConnectionLog"), message);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
200public static readonly EventId HealthCheckData = new EventId(HealthCheckDataId, HealthCheckDataName);
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Logging\FakeLoggerTests.cs (6)
71logger.Log<int>(LogLevel.Error, new EventId(0), 42, null, (_, _) => "MESSAGE"); 84logger.Log(LogLevel.Debug, new EventId(1), l, null, (_, _) => "Nothing"); 99logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE"); 113logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE"); 129logger.Log(LogLevel.Error, new EventId(0), dt, null, (_, _) => "MESSAGE"); 137logger.Log(LogLevel.Debug, new EventId(1), l, null, (_, _) => "Nothing");
Microsoft.Extensions.Hosting (11)
Internal\LoggerEventIds.cs (11)
10public static readonly EventId Starting = new EventId(1, nameof(Starting)); 11public static readonly EventId Started = new EventId(2, nameof(Started)); 12public static readonly EventId Stopping = new EventId(3, nameof(Stopping)); 13public static readonly EventId Stopped = new EventId(4, nameof(Stopped)); 14public static readonly EventId StoppedWithException = new EventId(5, nameof(StoppedWithException)); 15public static readonly EventId ApplicationStartupException = new EventId(6, nameof(ApplicationStartupException)); 16public static readonly EventId ApplicationStoppingException = new EventId(7, nameof(ApplicationStoppingException)); 17public static readonly EventId ApplicationStoppedException = new EventId(8, nameof(ApplicationStoppedException)); 18public static readonly EventId BackgroundServiceFaulted = new EventId(9, nameof(BackgroundServiceFaulted)); 19public static readonly EventId BackgroundServiceStoppingHost = new EventId(10, nameof(BackgroundServiceStoppingHost)); 20public static readonly EventId HostedServiceStartupFaulted = new EventId(11, nameof(HostedServiceStartupFaulted));
Microsoft.Extensions.Http (14)
DefaultHttpClientFactory.cs (4)
320public static readonly EventId CleanupCycleStart = new EventId(100, "CleanupCycleStart"); 321public static readonly EventId CleanupCycleEnd = new EventId(101, "CleanupCycleEnd"); 322public static readonly EventId CleanupItemFailed = new EventId(102, "CleanupItemFailed"); 323public static readonly EventId HandlerExpired = new EventId(103, "HandlerExpired");
Logging\LogHelper.cs (10)
22public static readonly EventId RequestStart = new EventId(100, "RequestStart"); 23public static readonly EventId RequestEnd = new EventId(101, "RequestEnd"); 25public static readonly EventId RequestHeader = new EventId(102, "RequestHeader"); 26public static readonly EventId ResponseHeader = new EventId(103, "ResponseHeader"); 28public static readonly EventId RequestFailed = new EventId(104, "RequestFailed"); 30public static readonly EventId PipelineStart = new EventId(100, "RequestPipelineStart"); 31public static readonly EventId PipelineEnd = new EventId(101, "RequestPipelineEnd"); 33public static readonly EventId RequestPipelineRequestHeader = new EventId(102, "RequestPipelineRequestHeader"); 34public static readonly EventId RequestPipelineResponseHeader = new EventId(103, "RequestPipelineResponseHeader"); 36public static readonly EventId PipelineFailed = new EventId(104, "RequestPipelineFailed");
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\Log.cs (1)
138new(eventId, eventName),
Microsoft.Extensions.Identity.Core (15)
LoggerEventIds.cs (15)
10public static readonly EventId RoleValidationFailed = new EventId(0, "RoleValidationFailed"); 11public static readonly EventId InvalidPassword = new EventId(0, "InvalidPassword"); 12public static readonly EventId UserAlreadyHasPassword = new EventId(1, "UserAlreadyHasPassword"); 13public static readonly EventId ChangePasswordFailed = new EventId(2, "ChangePasswordFailed"); 14public static readonly EventId AddLoginFailed = new EventId(4, "AddLoginFailed"); 15public static readonly EventId UserAlreadyInRole = new EventId(5, "UserAlreadyInRole"); 16public static readonly EventId UserNotInRole = new EventId(6, "UserNotInRole"); 17public static readonly EventId PhoneNumberChanged = new EventId(7, "PhoneNumberChanged"); 18public static readonly EventId VerifyUserTokenFailed = new EventId(9, "VerifyUserTokenFailed"); 19public static readonly EventId VerifyTwoFactorTokenFailed = new EventId(10, "VerifyTwoFactorTokenFailed"); 20public static readonly EventId LockoutFailed = new EventId(11, "LockoutFailed"); 21public static readonly EventId UserLockedOut = new EventId(12, "UserLockedOut"); 22public static readonly EventId UserValidationFailed = new EventId(13, "UserValidationFailed"); 23public static readonly EventId PasswordValidationFailed = new EventId(14, "PasswordValidationFailed"); 24public static readonly EventId GetSecurityStampFailed = new EventId(15, "GetSecurityStampFailed");
Microsoft.Extensions.Logging.Abstractions (1)
EventId.cs (1)
20return new EventId(i);
Microsoft.Extensions.ML (8)
ModelLoaders\FileModelLoader.cs (4)
151public static readonly EventId FileReloadBegin = new EventId(100, "FileReloadBegin"); 152public static readonly EventId FileReloadEnd = new EventId(101, "FileReloadEnd"); 153public static readonly EventId FileReload = new EventId(102, "FileReload"); 154public static readonly EventId FileReloadError = new EventId(103, nameof(FileReloadError));
ModelLoaders\UriModelLoader.cs (4)
185public static readonly EventId UriReloadBegin = new EventId(100, "UriReloadBegin"); 186public static readonly EventId UriReloadEnd = new EventId(101, "UriReloadEnd"); 187public static readonly EventId UriReloadError = new EventId(102, "UriReloadError"); 188public static readonly EventId UriLoadError = new EventId(103, "UriLoadError");
Microsoft.Extensions.Telemetry.PerformanceTests (4)
ClassicCodeGen.cs (2)
19global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String, global::System.String, global::System.String, global::System.String, global::System.String, global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(2037881459, nameof(RefTypes)), "Connection id '{connectionId}' received {type} frame for stream ID {streamId} with length {length} and flags {flags} and {other}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 30global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Int64, global::System.Int64, global::System.Int32, global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(558429541, nameof(ValueTypes)), "Range [{start}..{end}], options {options}, guid {guid}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
ModernCodeGen.cs (2)
27new global::Microsoft.Extensions.Logging.EventId(0, nameof(RefTypes)), 60new global::Microsoft.Extensions.Logging.EventId(0, nameof(ValueTypes)),
Microsoft.Extensions.Telemetry.Tests (29)
Logging\ExtendedLoggerTests.cs (27)
68logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 79Assert.Equal(new EventId(0), snap[0].Id); 95Assert.Equal(new EventId(2, "ID2"), snap[1].Id); 153logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 164Assert.Equal(new EventId(0), snap[0].Id); 171Assert.Equal(new EventId(2, "ID2"), snap[1].Id); 213logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0"); 214logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, null, (_, _) => "MSG0b"); 217logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2"); 218logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), (LoggerMessageState?)null, null, (_, _) => "MSG2b"); 229Assert.Equal(new EventId(0, "ID0"), snap[0].Id); 236Assert.Equal(new EventId(0, "ID0b"), snap[1].Id); 243Assert.Equal(new EventId(2, "ID2"), snap[2].Id); 250Assert.Equal(new EventId(2, "ID2b"), snap[3].Id); 278logger.Log(LogLevel.Warning, new EventId(0, "ID0"), e, null, (_, _) => "MSG0"); 289Assert.Equal(new EventId(0, "ID0"), snap[0].Id); 347logger.Log(LogLevel.Warning, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0"); 358Assert.Equal(new EventId(0, "ID0"), snap[0].Id); 380logger.Log(LogLevel.Information, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0"); 451logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0"); 452logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, ex, (_, _) => "MSG0b"); 455logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 456logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), lms, ex, (_, _) => "MSG2b"); 467Assert.Equal(new EventId(0, "ID0"), snap[0].Id); 472Assert.Equal(new EventId(0, "ID0b"), snap[1].Id); 477Assert.Equal(new EventId(2, "ID2"), snap[2].Id); 482Assert.Equal(new EventId(2, "ID2b"), snap[3].Id);
Logging\SerialExtendedLoggerTests.cs (2)
52logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0"); 55logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2");