Class HotReload
Internal integration point for .NET's MetadataUpdateHandler, enabling partial support for Hot Reload during development. This is not a stable API and should not be used by application developers.
public static class HotReload
- Inheritance
-
HotReload
- Inherited Members
Remarks
This type is invoked automatically by the runtime when types are updated via Edit and Continue or Hot Reload. However, Hot Reload support in Xui is limited, and application developers should rely on full rebuilds for consistent behavior.
The current implementation simply invalidates open windows and clears transient caches, without attempting to rehydrate or diff application state.
Methods
ClearCache(Type[]?)
Called by the runtime to clear any cached data after a hot reload. Not intended for use by application developers.
public static void ClearCache(Type[]? updatedTypes)
Parameters
updatedTypes
Type[]The list of updated types, if available.
MainThreadUpdateApplication(Type[]?)
Performs a synchronous application update on the main thread. This currently forces all open windows to re-render.
public static void MainThreadUpdateApplication(Type[]? updatedTypes)
Parameters
updatedTypes
Type[]The list of updated types, if available.
UpdateApplication(Type[]?)
Posts a request to the main UI dispatcher to refresh application state.
public static void UpdateApplication(Type[]? updatedTypes)
Parameters
updatedTypes
Type[]The list of updated types, if available.