Odd logic in WorkItem.Terminate?

Topics: CAB & Smart Client Software Factory
Aug 13, 2005 at 7:26 AM
originally posted by: limepickle

public void Terminate
{
ChangeStatus(WorkItemStatus.Terminated);
Dispose(true);
}

If the status change is cancelled in ChangeStatus, should the work item still be disposed?
Aug 15, 2005 at 10:13 AM
originally posted by: BradWilsonMSFT

My philosophy would be "yes". Termination shouldn't be something you can control.

For example, say your parent container is being terminated. Would your desire to stop termination mean that everybody up the chain can't terminate? What if the application itself is terminating?

Anybody object?