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

Afficher le fichier Open project: WSCF/WSCF

Méthodes publiques

Méthode 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

Méthode 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 méthode

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. ///
Résultat bool

LogMetadataServiceException() public static méthode

public static LogMetadataServiceException ( Exception exception ) : void
exception System.Exception
Résultat void

LogMetadataServicePlumbingException() public static méthode

public static LogMetadataServicePlumbingException ( Exception exception ) : void
exception System.Exception
Résultat void

ShutDownTraceSourceGracefully() public static méthode

public static ShutDownTraceSourceGracefully ( ) : void
Résultat void

ThrowInvalidOperationExceptionFromService() public static méthode

public static ThrowInvalidOperationExceptionFromService ( string message ) : Exception
message string
Résultat System.Exception