Click or drag to resize

EventHandlerExecutionOrderPreserver Class

Extracts, saves, loads and restores an application's event handler execution order in relation to other event handlers for the same event type.
Inheritance Hierarchy
SystemObject
  MFiles.VAF.CoreEventHandlerExecutionOrderPreserver

Namespace:  MFiles.VAF.Core
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntax
public class EventHandlerExecutionOrderPreserver

The EventHandlerExecutionOrderPreserver type exposes the following members.

Constructors
  NameDescription
Public methodEventHandlerExecutionOrderPreserver
Constructor.
Top
Properties
  NameDescription
Public propertyNvsNamespace
The NVS namespace to use to persist priority information.
Public propertyNvsType
The type of NVS storage to use to persist priority information.
Top
Methods
  NameDescription
Public methodClearPriorities
Clears an applications stored priorities from NVS.
Public methodLoadPriorities
Loads previously saved event handler priorities for an application from NVS.
Public methodResolvePriorities
Creates a list of which event handlers come before and after the application's event handlers.
Public methodRestoreExecutionOrder
Convienience method. Loads the previously saved execution order of all of an application's event handlers from NVS, and restores the order to the passed event handlers, and then clears then clears the saved data from NVS.
Public methodRestoreOrder
Applies priority rules to a set of event handlers by re-sorting them as needed.
Public methodRestorePriority
Applies an event handler priority rule to a set of event handlers for a certain type by re-sorting them as needed.
Public methodSaveExecutionOrder
Convenience method. Resolves the current execution order of all of an application's event handlers and saves it to NVS.
Public methodStorePriorities
Stores the application's priorities to NVS.
Top
Remarks
Assumes applications install maximum one event handler for each event type, except for Vault extension methods whose order is ignored, as they are not executed in sequence.
See Also