11 private static volatile int processId;
13 private static volatile string processName;
15 private long timeStamp = -1
L;
19 private string stackTrace;
29 if (stackTrace ==
null)
81 private static void InitProcessInfo()
84 if (processName ==
null)
89 processId = currentProcess.
Id;
99 internal static int GetProcessId()
105 internal static string GetProcessName()
111 internal static int GetThreadId()
static Thread CurrentThread
Gets the currently running thread.
string Callstack
Gets the call stack for the current thread.
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
Describes a set of security permissions applied to code. This class cannot be inherited.
Provides a set of methods and properties that you can use to accurately measure elapsed time....
Provides trace event data specific to a thread and a process.
Represents a simple last-in-first-out (LIFO) non-generic collection of objects.
static readonly DateTime MinValue
Represents the smallest possible value of T:System.DateTime. This field is read-only.
Provides a set of methods and properties that help you trace the execution of your code....
string ThreadId
Gets a unique identifier for the current managed thread.
static CorrelationManager CorrelationManager
Gets the correlation manager for the thread for this trace.
Represents an instant in time, typically expressed as a date and time of day. To browse the ....
static long GetTimestamp()
Gets the current number of ticks in the timer mechanism.
Stack LogicalOperationStack
Gets the logical operation stack from the call context.
Provides information about, and means to manipulate, the current environment and platform....
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
string ProcessName
Gets the name of the process.
long Timestamp
Gets the current number of ticks in the timer mechanism.
static string StackTrace
Gets current stack trace information.
Provides access to local and remote processes and enables you to start and stop local system processe...
static DateTime UtcNow
Gets a T:System.DateTime object that is set to the current date and time on this computer,...
override void Dispose(bool disposing)
Release all resources used by this process.
Guid ActivityId
Gets or sets the identity for a global activity.
void Demand()
Forces a T:System.Security.SecurityException at run time if all callers higher in the call stack have...
int Id
Gets the unique identifier for the associated process.
int ManagedThreadId
Gets a unique identifier for the current managed thread.
PermissionState
Specifies whether a permission should have all or no access to resources at creation.
int ProcessId
Gets the unique identifier of the current process.
Controls access to system and user environment variables. This class cannot be inherited.
static Process GetCurrentProcess()
Gets a new T:System.Diagnostics.Process component and associates it with the currently active process...
Provides information about a specific culture (called a locale for unmanaged code development)....
SecurityPermissionFlag
Specifies access flags for the security permission object.
Stack LogicalOperationStack
Gets the correlation data, contained in a stack.
Creates and controls a thread, sets its priority, and gets its status.