Beispiel #1
0
        protected void Application_Error(object sender, EventArgs e)
        {
            var exception = Server.GetLastError();

            var logger = new ExceptionLogger(_container.Resolve<ILogger>());
            logger.Log(exception);
        }
 public MessageRepositoryInterceptor(ExceptionLogger logger)
 {
     _logger = logger;
 }