I am using Castle Windsor in my application and I use an example of some services in the exception attribute field attributes in ILOG Wish:
Public Class GenericExceptionFilterAttribute: Exception filter attribute {Private Readonly Illog _logger; Public GenericExceptionFilterAttribute () {} Public GenericExceptionFilterAttribute (ILogManager Log Manager) {_logger = logManager.GetLogger (typeof (GenericExceptionFilterAttribute)); Carlos
Div = "post-text" itemprop = "text">
Dependency to solve dependence on this:
On-the-grid public override (HTPActioned Contact Reference) {var log = (ILOG) context .ActionContext.ControllerContext.Configuration.DependencyResolver .GetService (typeof (Ilog)); }
No comments:
Post a Comment