PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsThrowing­Logging­Exception­HandlerOn­Invalid­User­Code
Open sandboxFocus

ThrowingLoggingExceptionHandler.OnInvalidUserCode Method

OnInvalidUserCode(ref CallerInfo, LoggingTypeSource, String, Object[])

Method invoked when a logging component detects a precondition violation that probably stem from user-written code.

Declaration
public void OnInvalidUserCode(ref CallerInfo callerInfo, LoggingTypeSource source, string message, params object[] args)
Parameters
Type Name Description
CallerInfo callerInfo

Location of the code that performed the invalid call, or an empty instance if the information is not available.

LoggingTypeSource source

Related LoggingTypeSource, or null if it is not available.

String message

Error message formatting string.

Object[] args

Arguments for the formatting string, or null.

Implements
ILoggingExceptionHandler.OnInvalidUserCode(ref CallerInfo, LoggingTypeSource, String, Object[])