Esempio n. 1
0
        protected NOPApplication()
        {
            m_Configuration = new MemoryConfiguration();
            m_Configuration.Create();

            m_CommandArgsConfiguration = new MemoryConfiguration();
            m_CommandArgsConfiguration.Create();

            m_StartTime          = DateTime.Now;
            m_Singletons         = new NOPApplicationSingletonManager();
            m_DependencyInjector = new ApplicationDependencyInjector(this);
            m_Realm = new ApplicationRealmBase(this);

            m_Log             = new NOPLog(this);
            m_Instrumentation = new NOPInstrumentation(this);
            m_ObjectStore     = new NOPObjectStore(this);
            m_Glue            = new NOPGlue(this);
            m_DataStore       = new NOPDataStore(this);
            m_SecurityManager = new NOPSecurityManager(this);
            m_Module          = new NOPModule(this);
            m_TimeSource      = new DefaultTimeSource(this);
            m_EventTimer      = new EventTimer(this);
        }
Esempio n. 2
0
        public TestApplication(ConfigSectionNode cfgRoot = null)
        {
            this.ConfigRoot = cfgRoot;

            Singletons         = new ApplicationSingletonManager();
            DependencyInjector = new ApplicationDependencyInjector(this);
            Active             = true;
            StartTime          = DateTime.Now;
            Log             = new NOPLog(this);
            Instrumentation = new NOPInstrumentation(this);
            DataStore       = new NOPDataStore(this);
            ObjectStore     = new NOPObjectStore(this);
            Glue            = new NOPGlue(this);
            ModuleRoot      = new NOPModule(this);
            SecurityManager = new NOPSecurityManager(this);
            TimeSource      = new DefaultTimeSource(this);
            TimeLocation    = TimeLocation.Parent;
            EventTimer      = new NOPEventTimer(this);

            Realm = new ApplicationRealmBase(this);

            Apps.ExecutionContext.__BindApplication(this);
        }