Hello,
I have a similar problem the Post event it fires, but the Pre event dont fires, I only will know the last lyfecyclestate before the user has change it, for example the user makes a change from "A state to B state", in the Post event I know that the new state is the "B state" but I will know the A state, the problem is that the Pre event dont fire.
public void OnStartup(IApplication application)
{
m_explorerApplication = application;
DocumentServiceExtensions.UpdateFileLifecycleStateEvents.Pre += new EventHandler<UpdateFileLifeCycleStateCommandEventArgs>(UpdateFileLifecycleStateEvents_Pre);
DocumentServiceExtensions.UpdateFileLifecycleStateEvents.Post +=
new EventHandler<UpdateFileLifeCycleStateCommandEventArgs>(UpdateFileLifecycleStateEvents_Post);
}
void UpdateFileLifecycleStateEvents_Post(object sender, UpdateFileLifeCycleStateCommandEventArgs e)
{
//My logic, this event is fired and works.
}
void UpdateFileLifecycleStateEvents_Pre(object sender, UpdateFileLifeCycleStateCommandEventArgs e)
{
// this event is never fired. dont works....
}
Why I have this problem?