alexbeletsky / elmah-mvc

Painless integration of ELMAH into ASP.NET MVC application
http://nuget.org/packages/Elmah.MVC
Apache License 2.0
266 stars 61 forks source link

changing controller to work on mono #5

Closed AlexCuse closed 12 years ago

AlexCuse commented 12 years ago

HttpContext.GetService method is not implemented on mono. This changes ElmahResult to retrieve ControllerContext's HttpContext(Base) as an 'old school' HttpContext without using said method (as suggested here)

alexbeletsky commented 12 years ago

Just tested. Works fine, about to merge and update nuget package.

Thanks a lot for pull request :)

AlexCuse commented 12 years ago

No problem - I couldn't get the .axd route working on apache at all, this gave me a better way forward once I worked around the bug. Thanks for putting such a handy piece of code up here :)