public void before()
        {
            Context context = new Context();

            injector  = context.injector;
            installer = new ExtensionInstaller(context);
        }
예제 #2
0
        /*============================================================================*/
        /* Private Functions                                                          */
        /*============================================================================*/

        /// <summary>
        /// Configures mandatory context dependencies
        /// </summary>
        private void Setup()
        {
            _injector.Map(typeof(IInjector)).ToValue(_injector);
            _injector.Map(typeof(IContext)).ToValue(this);
            _logger             = _logManager.GetLogger(this);
            _pin                = new Pin();
            _lifecycle          = new Lifecycle(this);
            _configManager      = new ConfigManager(this);
            _extensionInstaller = new ExtensionInstaller(this);
            BeforeInitializing(BeforeInitializingCallback);
            AfterInitializing(AfterInitializingCallback);
            BeforeDestroying(BeforeDestroyingCallback);
            AfterDestroying(AfterDestroyingCallback);
        }