Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Non-generic Bootstrapper obsolete?

$
0
0
Hi,

sorry for the confusion.
Since CM 1.4 the functionality of the bootstrapper is in BootstrapperBase class. The reason was that some users wanted to control when the framework is started. But the documentation wasn't updated to reflect this change.

The inheritance hierarchy looks like this:
BootstrapperBase
  |
  |-- Boostrapper (obsolete)
  |
  |-- Boostrapper<TRootModel>
  |
  |-- PhoneBootstrapperBase
        |
        |-- PhoneBoostrapper
BootstrapperBase and PhoneBootstrapperBase do not call the Start() method in the constructor. So it is up to you to start the framework whenever you want (e.g. to configure the logger before).

Now the Bootstrapper class looks like this:
[Obsolete]
publicclass Bootstrapper : BootstrapperBase {
    public Bootstrapper(bool useApplication = true) : base(useApplication) {
        Start();
    }
}
What does this mean for non-Xaml host applications:
  • inherit your bootstrapper from BootstrapperBase
  • call Start() (e.g. in the constructor or maybe at some other place, it is a public method)

Viewing all articles
Browse latest Browse all 1760

Trending Articles