Esempio n. 1
0
        internal TracableEvent(TraceEventType eventType, int eventId)
        {
            eventType.RequireDefinedValue(nameof(eventType));
            if (eventId < 1)
            {
                throw new ArgumentOutOfRangeException(nameof(eventId),
                                                      eventId,
                                                      Resources.ExceptionFormats.TracableEventIdMustBePositiveInteger);
            }

            EventType = eventType;
            EventId   = eventId;
        }