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

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

            m_StartTime = DateTime.Now;
            m_Realm     = new ApplicationRealmBase();
        }
Exemplo n.º 2
0
        public TestApplication(ConfigSectionNode cfgRoot = null)
        {
            this.ConfigRoot = cfgRoot;

            Active          = true;
            StartTime       = DateTime.Now;
            Log             = NOPLog.Instance;
            Instrumentation = NOPInstrumentation.Instance;
            DataStore       = NOPDataStore.Instance;
            ObjectStore     = NOPObjectStore.Instance;
            Glue            = NOPGlue.Instance;
            ModuleRoot      = NOPModule.Instance;
            SecurityManager = NOPSecurityManager.Instance;
            TimeSource      = NFX.Time.DefaultTimeSource.Instance;
            TimeLocation    = new Time.TimeLocation();
            EventTimer      = NFX.Time.NOPEventTimer.Instance;

            Realm = new ApplicationRealmBase();

            ApplicationModel.ExecutionContext.__BindApplication(this);
        }