ContextStorage

Namespace: WellFired.Guacamole

Description

Context storage store the information of each Guacamole Windows that are closed. This is essential in order to reinitialize the window that were not closed when Unity restart or compile. It includes essentially the size of the window, the view type and the view model type. The ids of Guacamole views being unique for each view, the window view id is used as a key in our storage. We also keep track of all the different window contexts saved in the storage to delete each of them after the windows were reloaded.

Public Methods

  ContextStorage ( IDataStorageService storage, ISerializer serializer )
Context Load ( string windowID )
void Save ( string windowID, Context context )
void Delete ( string windowID )
void CleanUpStoredContexts ( )

Breakdown

  • void Save ( string windowID, Context context )
  • void Delete ( string windowID )
  • void CleanUpStoredContexts ( )