ForgeDocs
Documentation for the forge framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Forge.Utilities.ModificationManager Class Reference

The modification manager allows for a set of generic modifications to be queued up concurrently. At a later point in time, the modifications can then be retrieved deterministically (such that every computer will process the modification list in the same order) and the modifications can be applied. More...

Public Member Functions

void SubmitModification (IModificationContext context, IModification modification)
 Submit a new modification. More...
 
IEnumerable< IModificationGetModifications ()
 Returns all of the modifications that have been done thus far. More...
 
void ClearModifications ()
 Clears out the list of completed modifications. More...
 

Detailed Description

The modification manager allows for a set of generic modifications to be queued up concurrently. At a later point in time, the modifications can then be retrieved deterministically (such that every computer will process the modification list in the same order) and the modifications can be applied.

This class helps make multithreading deterministic.

Member Function Documentation

void Forge.Utilities.ModificationManager.ClearModifications ( )

Clears out the list of completed modifications.

IEnumerable<IModification> Forge.Utilities.ModificationManager.GetModifications ( )

Returns all of the modifications that have been done thus far.

void Forge.Utilities.ModificationManager.SubmitModification ( IModificationContext  context,
IModification  modification 
)

Submit a new modification.

Parameters
contextThe object which is providing this modification.
modificationThe modification itself.

The documentation for this class was generated from the following file: