Switching the layout, IFilterResult doesn't execute OnResultExecuting method

Topics: Customizing Orchard, Troubleshooting, Writing themes
Feb 17, 2014 at 4:57 AM
Hi!
I try to create multiple Layout supporting by switching shapes in FilterProvider object: http://weblogs.asp.net/bleroy/archive/2010/12/14/switching-the-layout-in-orchard-cms.aspx

I created Theme project, implemented new FilterProvider class from example. But Layouts still doesn't change. I tried to debug execution and attach to asp.net process:
Code execution go on FilterProvider Constructor, but not in OnResultExecuting on OnResultExecuted methods. It seems like Filter creates, but not executes.

What is the problem?