Interface IExceptionLoggingContext
Assembly: SoCore.dll
Syntax
public interface IExceptionLoggingContext
Methods
AddExceptionInfo(IDictionary<String, String>)
Add information to be logged if exception is thrown and logged
Declaration
void AddExceptionInfo(IDictionary<string, string> args)
Parameters
AddExceptionInfo<TException>(IDictionary<String, String>)
Add information to be logged if the provided exception is thrown and logged
Declaration
void AddExceptionInfo<TException>(IDictionary<string, string> args)
where TException : Exception
Parameters
Type Parameters
Name |
Description |
TException |
Type of exception to log information for
|
AddExceptionInfo<TException>(String, String)
Add information to be logged if the provided exception is thrown and logged
Declaration
void AddExceptionInfo<TException>(string key, string value)
where TException : Exception
Parameters
Type Parameters
Name |
Description |
TException |
|
GetExceptionInfo(Type)
Get information that should be added to exceptions when logged.
Declaration
IDictionary<string, string> GetExceptionInfo(Type exceptionType)
Parameters
Type |
Name |
Description |
Type |
exceptionType |
|
Returns
Extension Methods
EnumUtil.MapEnums<From, To>(From)