/// <summary> /// As assemblies don't have a well known entry point we need to initialise the bootstrapper on view construction AND view-model construction as we don't have control on how the user may access us /// </summary> internal static void Initialise() { if (null == bootstrapper) { bootstrapper = new FileExplorerBootStrapper(); } }
protected sealed override IList <Assembly> GetAssemblies() { var assemblies = new HashSet <Assembly> { GetType().GetAssembly(), typeof(XamarinFormsDesignBootstrapperBase).GetAssembly() }; var application = Application.Current; if (application != null) { assemblies.Add(application.GetType().GetAssembly()); } BootstrapperBase.TryLoadAssembly(XamarinFormsBootstrapperBase.BindingAssemblyName, assemblies); assemblies.AddRange(GetAssembliesInternal()); return(assemblies.ToArrayEx()); }
public App(BootstrapperBase bootstrapper) { this.bootstrapper = bootstrapper; InitializeComponent(); MainPage = new NavigationPage(); InitializeContainer(); var logging = container.Resolve <Logging>(); log = logging.GetLoggerFor <App>(); log.Debug("Container has been initialized."); }
public BootstrapperBaseTests() { serviceLocator = new Mock<FakeServiceLocator>(); bootstrapper = new BootstrapperBaseTestDouble(serviceLocator); }