1 write to EventId
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
4406EventId = eventId;
14 references to EventId
Microsoft.AspNetCore.InternalTesting (5)
Tracing\EventSourceValidator.cs (5)
14/// <see cref="EventAttribute.EventId"/> values and <c>WriteEvent</c> call arguments. 36/// Additionally checks for duplicate <see cref="EventAttribute.EventId"/> values across methods. 66if (seenIds.TryGetValue(eventAttr.EventId, out var existingMethod)) 69$"Duplicate EventId {eventAttr.EventId}: methods '{existingMethod}' and '{method.Name}' share the same ID."); 73seenIds[eventAttr.EventId] = method.Name;
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (8)
3160manifest.ManifestError(SR.Format(SR.EventSource_AbstractMustNotDeclareEventMethods, method.Name, eventAttribute.EventId)); 3187else if (eventAttribute.EventId <= 0) 3194manifest.ManifestError(SR.Format(SR.EventSource_EventMustNotBeExplicitImplementation, method.Name, eventAttribute.EventId)); 3205eventAttribute.Task = (EventTask)(0xFFFE - eventAttribute.EventId); 3229int startEventId = eventAttribute.EventId - 1; 3528ref EventMetadata metadata = ref CollectionsMarshal.GetValueRefOrAddDefault(eventData, eventAttribute.EventId, out _); 3530eventAttribute.EventId, 3609int evtId = eventAttribute.EventId;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
201events?.Append(" <event value=\"").Append(eventAttribute.EventId).