Post_Serving Not Getting Called?

Topics: Business Logic Layer, Controls
Jun 13, 2008 at 4:13 AM
I am trying to get the 


SilverlightPlayer and the SilverLight Slide.Show Extensions to work with BlogEngine.NET. I have been able to get them to work for a Page. But I cannot get them to work as a Post. The Post Event is registered in the class contstuctor like this.....



public SilverlightSlideShow()




        Post.Serving += new EventHandler<ServingEventArgs>(Post_Serving);



and the Event is declared like this



private static void Post_Serving(object sender, ServingEventArgs e)



........Dekted for Brevity

However the event never gets called when the Post is displayed. I see it get registered in the constructor, but the event never happens when the post is displayed. 

If I do a Page Serving and create a page it does get called when the page is displayed.

Jun 13, 2008 at 10:14 PM
If you open the BE.N project locally using Visual Studio, you can debug it by placing the breakpoint on the line 175 of PostViewBase.cs. You can find PostViewBase.cs in the BlogEngine.Core project.

I tried that myself, and found out that Serving event always get called.

Agus Suhanto