DotNetCorePlugins/samples/hot-reload
2022-06-04 21:23:10 -07:00
..
HotReloadApp Delete deprecated dependencies and drop support for everything < .NET 6 2022-06-04 21:09:40 -07:00
TimestampedPlugin Delete deprecated dependencies and drop support for everything < .NET 6 2022-06-04 21:09:40 -07:00
hot-reload.sln Implement naive hot reloading (#62) 2019-09-13 21:27:48 -07:00
README.md Implement naive hot reloading (#62) 2019-09-13 21:27:48 -07:00
run.ps1 Update release notes and README 2022-06-04 21:23:10 -07:00
run.sh Update release notes and README 2022-06-04 21:23:10 -07:00

Hot Reload Sample

This is a minimal sample of how to take advantage of hot reloading support.

To run this sample, execute the run.sh script. This will:

  • Compile the projects once
  • Start the HotReloadApp console application
    • This creates a single loader with hot reloading enabled
    • It subscribes to the PluginLoader.Reloaded event to be notified when a new version of the assemblies are availabled.
    • It invokes the new version of the assembly
  • Rebuilds the TimestampedPlugin every 5 seconds (until you press CTRL+C to exit)