コード例 #1
0
        public ShellViewModel(IModuleManager moduleMgr)
        {
            this.DisplayName   = "Entry";
            this._moduleMgr    = moduleMgr;
            this._systemModule = this._moduleMgr.SystemModule;

            this._systemModule.Initialize(this);
            this._systemModule.Startup();
        }
コード例 #2
0
        /// <summary>
        /// Creates and returns the system module version 2.
        /// </summary>
        /// <returns>
        /// The System module V2.
        /// </returns>
        public ISystemModule GetSystemModule()
        {
            if (systemModule == null)
            {
                systemModule = new SystemModule.SystemModule(_configuration);

                Type systemLogicType = CreateTypeFromConfiguration("SystemModule", "SystemLogic", "OpenImis.ModulesV3.SystemModule.Logic.SystemLogic");
                systemModule.SetSystemLogic((SystemModule.Logic.ISystemLogic)ActivatorUtilities.CreateInstance(_serviceProvider, systemLogicType));
            }
            return(systemModule);
        }
コード例 #3
0
 public SystemModuleController(ISystemModule _systemModule, ILogger <SystemModuleController> _logger)
 {
     systemModule = _systemModule;
     logger       = _logger;
 }