private void Application_Startup(object sender, StartupEventArgs e) { Csla.Serialization.Mobile.CslaReaderWriterFactory.SetCslaReaderType(typeof(Csla.Serialization.Mobile.CslaBinaryReader)); Csla.Serialization.Mobile.CslaReaderWriterFactory.SetCslaWriterType(typeof(Csla.Serialization.Mobile.CslaBinaryWriter)); var bootstrapper = new Bootstrapper(); bootstrapper.Run(); aggregator = bootstrapper.Container.Resolve<IEventAggregator>(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var bootstrapper = new Bootstrapper(); bootstrapper.Run(); }