...
When loading lots of models, it is not required to get support for validation and change notifications. Notifications and validation can be suspended per model (using the LeanAndMeanModel property) or globally using the GlobalLeanAndMeanModel property.
Preloading assemblies into the AppDomain
...
Preloading assemblies might result in a slower startup time, but will not cause slow downs for reflection or assembly loading during the actual application execution. To preload assemblies using Catel, simply call this extension method:
WPF application
In App.xaml.cs, add the following code
Code Block |
---|
var directory = typeof(MainWindow).Assembly.GetDirectory(); AppDomain.Current.PreloadAssemblies(directory); |
ASP.NET application
In global.asax, add the following code:
Code Block |
---|
var directory = Server.MapPath("~/bin"); AppDomain.Current.PreloadAssemblies(directory); |
...