C# Class Elders.Hystrix.NET.Exceptions.ExceptionThreadingUtility

Used to capture a stacktrace from one thread and append it to the stacktrace of another

This is used to make the exceptions thrown from an isolation thread useful, otherwise they see a stacktrace on a thread but never see who was calling it.

Datei anzeigen Open project: Elders/Hystrix.NET Class Usage Examples

Public Methods

Method Description
AssignCallingThread ( Thread callingThread ) : void
GetCallingThreadStack ( ) : StackTrace

Private Methods

Method Description
GetStackTrace ( Thread targetThread ) : StackTrace

http://stackoverflow.com/questions/285031/how-to-get-non-current-threads-stacktrace/14935378#14935378

Method Details

AssignCallingThread() public static method

public static AssignCallingThread ( Thread callingThread ) : void
callingThread Thread
return void

GetCallingThreadStack() public static method

public static GetCallingThreadStack ( ) : StackTrace
return System.Diagnostics.StackTrace