Skip to content

Model Class

Richard Martin edited this page Mar 25, 2024 · 2 revisions

Bootstrapper.Models.Model

All the instances that are injected into the constructor are exposed by properties in the model. Other properties are initialized here as well.

Log property

Log = new Log(Engine);

IEngine provides a method to write entries to the bundle's log file. The Log class just makes this a little more convenient and provides a way to read the log.

State property

State = new AppState(Engine, CommandInfo, Bundle);

The AppState class provides access to the BA's shared state. There's quite a bit of state to maintain. Putting it all in one place helps to organize things. All the state's properties provide thread safe access.

PlanAndApply method

public void PlanAndApply(LaunchAction action)

PlanAndApply starts the provided installer action. This gets called when the user selects the Install, Uninstall, Repair, etc. button. It can also be called immediately after the detect phase when the BA is running silently.

Previous: BootstrapperApp Class || Next: WpfFacade Class

Clone this wiki locally