Skip to content

SleepWellPupper/RhoMicro.HotterReload

Repository files navigation

RhoMicro.HotterReload

Integrates dotnet hot reload events into service collections.

Installation

<ItemGroup>
    <PackageReference Update="RhoMicro.HotterReload" Version="1.0.0" />
</ItemGroup>

Use

Add hot reload services to a service collection:

var hotReloadBuilder = services.AddHotReload();

On the returned builder, use the various overloads of AddHandler to register handlers for hot reload events:

In order to initialize the hot reload integration, resolve the IHotReloadServiceInitializer and invoke its Initialize method:

serviceProvider.GetRequiredService<IHotReloadServiceInitializer>().Initialize();

When added to a service collection on a host builder such as the WebApplicationBuilder, this step is not necessary.

About

Integrates dotnet hot reload into service collections.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages