/
EventRecord.cs
61 lines (47 loc) · 2.01 KB
/
EventRecord.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Security.Principal;
using System.Diagnostics.CodeAnalysis;
namespace System.Diagnostics.Eventing.Reader
{
/// <summary>
/// Represents an event obtained from an EventReader.
/// </summary>
public abstract class EventRecord : IDisposable
{
public abstract int Id { get; }
public abstract byte? Version { get; }
public abstract byte? Level { get; }
public abstract int? Task { get; }
public abstract short? Opcode { get; }
public abstract long? Keywords { get; }
public abstract long? RecordId { get; }
public abstract string ProviderName { get; }
public abstract Guid? ProviderId { get; }
public abstract string LogName { get; }
public abstract int? ProcessId { get; }
public abstract int? ThreadId { get; }
public abstract string MachineName { get; }
public abstract SecurityIdentifier UserId { get; }
public abstract DateTime? TimeCreated { get; }
public abstract Guid? ActivityId { get; }
public abstract Guid? RelatedActivityId { get; }
public abstract int? Qualifiers { get; }
public abstract string FormatDescription();
public abstract string FormatDescription(IEnumerable<object> values);
public abstract string LevelDisplayName { get; }
public abstract string OpcodeDisplayName { get; }
public abstract string TaskDisplayName { get; }
public abstract IEnumerable<string> KeywordsDisplayNames { get; }
public abstract EventBookmark Bookmark { get; }
public abstract IList<EventProperty> Properties { get; }
public abstract string ToXml();
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) { }
}
}