I'd like to distinguish between a scheduled unpublish action and an immediate unpublish action via the Event System. Is this possible?
UnPublishEventArgs there is a member
This will have a property -
StartAt - If StartAt property is set to DateTime.MinValue that means the Unpublishing is scheduled for Immediate unpublish and if it is set to a particular datetime, that means it is schedule to unpublish at some other time.
UnPublishEventArgs has property
UnPublishInstruction which in turn has
StartAt. So if
StartAt is set - it's scheduled action