PDA

View Full Version : PublishEvent method not in IApplicationContext Interface?


jjx
11-10-2004, 11:22 AM
now in AbstractApplicationContext, why?


public class LoginAction : ApplicationObjectSupport,IAction
{
public String Execute()
{
//discommodious
AbstractApplicationContext context=(ApplicationContext as AbstractApplicationContext);
if (context!=null)
context.PublishEvent(new ApplicationEventArgs());

......
}
}

Mark Pollack
11-10-2004, 08:51 PM
Hi,

Thanks for reporting this. The PublishEvent method was accidentally left out of the interface IApplicationContext. :oops: I have fixed this in CVS. You can now simply write

ApplicationContext.PublishEvent(new ApplicationEventArgs());

This change will be in the 0.6 final release.

Cheers,
Mark