Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Diagnostics.Tracing.EventSource.OverrideEventProvider Class Referencesealed

Public Types

enum  WriteEventErrorCode {
  NoError , NoFreeBuffers , EventTooBig , NullInput ,
  TooManyArgs , Other
}
 

Public Member Functions

 OverrideEventProvider (EventSource eventSource, EventProviderType providerType)
 
void Dispose ()
 
virtual void Close ()
 
bool IsEnabled ()
 
bool IsEnabled (byte level, long keywords)
 

Static Public Member Functions

static WriteEventErrorCode GetLastWriteEventError ()
 

Protected Member Functions

override void OnControllerCommand (ControllerCommand command, IDictionary< string, string > arguments, int perEventSourceSessionId, int etwSessionId)
 
virtual void Dispose (bool disposing)
 

Package Functions

unsafe void Register (EventSource eventSource)
 
unsafe bool WriteEvent (ref EventDescriptor eventDescriptor, IntPtr eventHandle, Guid *activityID, Guid *childActivityID, object[] eventPayload)
 
unsafe bool WriteEvent (ref EventDescriptor eventDescriptor, IntPtr eventHandle, Guid *activityID, Guid *childActivityID, int dataCount, IntPtr data)
 
unsafe bool WriteEventRaw (ref EventDescriptor eventDescriptor, IntPtr eventHandle, Guid *activityID, Guid *relatedActivityID, int dataCount, IntPtr data)
 
unsafe int SetInformation (Interop.Advapi32.EVENT_INFO_CLASS eventInfoClass, void *data, uint dataSize)
 

Package Attributes

IEventProvider m_eventProvider
 
bool m_disposed
 

Properties

EventLevel Level [get, set]
 
EventKeywords MatchAnyKeyword [get, set]
 
EventKeywords MatchAllKeyword [get, set]
 

Private Member Functions

delegate void SessionInfoCallback (int etwSessionId, long matchAllKeywords, ref List< SessionInfo > sessionList)
 
unsafe void EtwEnableCallBack (in Guid sourceId, int controlCode, byte setLevel, long anyKeyword, long allKeyword, Interop.Advapi32.EVENT_FILTER_DESCRIPTOR *filterData, void *callbackContext)
 
List< KeyValuePair< SessionInfo, bool > > GetSessions ()
 
unsafe void GetSessionInfo (SessionInfoCallback action, ref List< SessionInfo > sessionList)
 
unsafe bool GetDataFromController (int etwSessionId, Interop.Advapi32.EVENT_FILTER_DESCRIPTOR *filterData, out ControllerCommand command, out byte[] data, out int dataStart)
 
unsafe uint EventRegister (EventSource eventSource, Interop.Advapi32.EtwEnableCallback enableCallback)
 
void EventUnregister (long registrationHandle)
 

Static Private Member Functions

static int FindNull (byte[] buffer, int idx)
 
static void GetSessionInfoCallback (int etwSessionId, long matchAllKeywords, ref List< SessionInfo > sessionList)
 
static int IndexOfSessionInList (List< SessionInfo > sessions, int etwSessionId)
 
static void SetLastError (WriteEventErrorCode error)
 
static unsafe object EncodeObject (ref object data, ref EventData *dataDescriptor, ref byte *dataBuffer, ref uint totalEventSize)
 

Private Attributes

readonly EventSource m_eventSource
 
readonly EventProviderType m_eventProviderType
 
Interop.Advapi32.EtwEnableCallback m_etwCallback
 
long m_regHandle
 
byte m_level
 
long m_anyKeywordMask
 
long m_allKeywordMask
 
List< SessionInfom_liveSessions
 
bool m_enabled
 
string m_providerName
 
Guid m_providerId
 

Static Private Attributes

static WriteEventErrorCode s_returnCode
 
const int BasicTypeAllocationBufferSize = 16
 
const int EtwMaxNumberArguments = 128
 
const int EtwAPIMaxRefObjCount = 8
 
const int TraceEventMaximumSize = 65482
 
static bool m_setInformationMissing
 

Detailed Description

Definition at line 72 of file EventSource.cs.


The documentation for this class was generated from the following file: