public ShellViewModel(IModuleManager moduleMgr) { this.DisplayName = "Entry"; this._moduleMgr = moduleMgr; this._systemModule = this._moduleMgr.SystemModule; this._systemModule.Initialize(this); this._systemModule.Startup(); }
/// <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); }
public SystemModuleController(ISystemModule _systemModule, ILogger <SystemModuleController> _logger) { systemModule = _systemModule; logger = _logger; }