Esempio n. 1
0
        /// <summary>
        /// Loads the kernel.
        /// </summary>
        private static void LoadKernel()
        {
            // At a later stage we need to clean this up.
            // there are two constants and a DI reference.
            var bootstrapper = new KernelBootstrapper(
                s_ShutdownEvent,
                container =>
            {
                s_UiContainer       = container;
                s_ScriptHost        = s_UiContainer.Resolve <IHostScripts>();
                s_Diagnostics       = s_UiContainer.Resolve <SystemDiagnostics>();
                s_ApplicationFacade = s_UiContainer.Resolve <IAbstractApplications>();
            });

            // Load the core system. This will automatically
            // run the UI bootstrapper which will then
            // load up the UI and display it.
            bootstrapper.Load();
        }
Esempio n. 2
0
        /// <summary>
        /// Loads the kernel.
        /// </summary>
        private static void LoadKernel()
        {
            // At a later stage we need to clean this up.
            // there are two constants and a DI reference.
            var bootstrapper = new KernelBootstrapper(
                s_ShutdownEvent,
                container =>
                {
                    s_UiContainer = container;
                    s_ScriptHost = s_UiContainer.Resolve<IHostScripts>();
                    s_Diagnostics = s_UiContainer.Resolve<SystemDiagnostics>();
                    s_ApplicationFacade = s_UiContainer.Resolve<IAbstractApplications>();
                });

            // Load the core system. This will automatically
            // run the UI bootstrapper which will then
            // load up the UI and display it.
            bootstrapper.Load();
        }