Class UnhandedExceptionLoggerConfigurationAttribute
Adds our unhandled exception logger to the controller's services
Inheritance
System.Object
Namespace: Umbraco.Web.WebApi
Assembly: Umbraco.Web.dll
Syntax
public class UnhandedExceptionLoggerConfigurationAttribute : ExceptionFilterAttribute
Remarks
Important to note that the UnhandledExceptionLogger will only be called if the controller has an ExceptionFilter applied to it, so to kill two birds with one stone, this class inherits from ExceptionFilterAttribute purely to force webapi to use the IExceptionLogger (strange)
Methods
View SourceInitialize(HttpControllerSettings, HttpControllerDescriptor)
Declaration
public virtual void Initialize(HttpControllerSettings controllerSettings, HttpControllerDescriptor controllerDescriptor)
Parameters
Type | Name | Description |
---|---|---|
HttpControllerSettings | controllerSettings | |
HttpControllerDescriptor | controllerDescriptor |