C# Class Thinktecture.ServiceModel.Extensions.Metadata.DiagnosticUtility

Show file Open project: WSCF/WSCF

Public Methods

Method Description
IsFatal ( Exception exception ) : bool

This method traverses a given exception tree and returns true if it contains any of the fatal runtime exceptions.

LogMetadataServiceException ( Exception exception ) : void

LogMetadataServicePlumbingException ( Exception exception ) : void

ShutDownTraceSourceGracefully ( ) : void
ThrowInvalidOperationExceptionFromService ( string message ) : Exception

Private Methods

Method Description
CreateOrGetTraceSource ( ) : TraceSource

LogExceptionCore ( Exception exception, int eventId ) : void

Formats and logs the details of a given Exception. In addition to the exception details, this method also logs the current process name, process id, managed thread id of the thread that exception was throw in and the name of the identity of the current principal.

Method Details

IsFatal() public static method

This method traverses a given exception tree and returns true if it contains any of the fatal runtime exceptions.
public static IsFatal ( Exception exception ) : bool
exception System.Exception /// Root exception of the exception tree. ///
return bool

LogMetadataServiceException() public static method

public static LogMetadataServiceException ( Exception exception ) : void
exception System.Exception
return void

LogMetadataServicePlumbingException() public static method

public static LogMetadataServicePlumbingException ( Exception exception ) : void
exception System.Exception
return void

ShutDownTraceSourceGracefully() public static method

public static ShutDownTraceSourceGracefully ( ) : void
return void

ThrowInvalidOperationExceptionFromService() public static method

public static ThrowInvalidOperationExceptionFromService ( string message ) : Exception
message string
return System.Exception