AddStartupTask(ISiloBuilder, int)
staticextension
public static ISiloBuilder AddStartupTask<TStartup>(this ISiloBuilder builder, int stage = 20000) Adds a startup task to be executed when the silo has started.
Parameters
builderISiloBuilder- The builder.
stageint- The stage to execute the startup task, see values in
ServiceLifecycleStage.
Returns
The provided
ISiloBuilder. 