1 write to EventId
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
4406
EventId
= 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.
66
if (seenIds.TryGetValue(eventAttr.
EventId
, out var existingMethod))
69
$"Duplicate EventId {eventAttr.
EventId
}: methods '{existingMethod}' and '{method.Name}' share the same ID.");
73
seenIds[eventAttr.
EventId
] = method.Name;
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (8)
3160
manifest.ManifestError(SR.Format(SR.EventSource_AbstractMustNotDeclareEventMethods, method.Name, eventAttribute.
EventId
));
3187
else if (eventAttribute.
EventId
<= 0)
3194
manifest.ManifestError(SR.Format(SR.EventSource_EventMustNotBeExplicitImplementation, method.Name, eventAttribute.
EventId
));
3205
eventAttribute.Task = (EventTask)(0xFFFE - eventAttribute.
EventId
);
3229
int startEventId = eventAttribute.
EventId
- 1;
3528
ref EventMetadata metadata = ref CollectionsMarshal.GetValueRefOrAddDefault(eventData, eventAttribute.
EventId
, out _);
3530
eventAttribute.
EventId
,
3609
int evtId = eventAttribute.
EventId
;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
201
events?.Append(" <event value=\"").Append(eventAttribute.
EventId
).