Sanitizing implementation of exception inspector, for hiding sensitive information in exception details. More...
Public Member Functions | |
| SanitizingExceptionInspector (IHostEnvironment environment, ApplicationContext applicationContext, ILogger< SanitizingExceptionInspector > logger) | |
| Constructor. More... | |
| void | InspectException (Type objectType, object businessObject, object criteria, string methodName, Exception ex) |
| Logs the exception that occurred during DataPortal call, then throws a generic, less detailed exception for return to the client More... | |
Sanitizing implementation of exception inspector, for hiding sensitive information in exception details.
Only sanitizes exceptions from remote dataportals
Definition at line 19 of file SanitizingExceptionInspector.cs.
| Csla.Server.SanitizingExceptionInspector.SanitizingExceptionInspector | ( | IHostEnvironment | environment, |
| ApplicationContext | applicationContext, | ||
| ILogger< SanitizingExceptionInspector > | logger | ||
| ) |
Constructor.
| environment | The host environment in which we are operating |
| applicationContext | The context of the current request |
| logger | The logger to which to log exceptions |
Definition at line 32 of file SanitizingExceptionInspector.cs.
| void Csla.Server.SanitizingExceptionInspector.InspectException | ( | Type | objectType, |
| object | businessObject, | ||
| object | criteria, | ||
| string | methodName, | ||
| Exception | ex | ||
| ) |
Logs the exception that occurred during DataPortal call, then throws a generic, less detailed exception for return to the client
| objectType | Type of the object. |
| businessObject | The business object, if available. |
| criteria | The criteria. |
| methodName | Name of the method. |
| ex | The exception. |
Implements Csla.Server.IDataPortalExceptionInspector.
Definition at line 48 of file SanitizingExceptionInspector.cs.