private DomainFacade(IPlugin pPlugin) { cPlugin = pPlugin; cInfrastructure = InfrastructureFacade.getInstance(pPlugin); cRecordList = new List <SystemRecord>(); cSystemPatternList = new List <ManageSystems.SystemPattern>(); cRecordObserverList = new List <IRecordObserver>(); cSystemPatternObserverList = new List <ISystemPatternObserver>(); }
/// <summary> /// Create single instance /// </summary> /// <returns></returns> public static InfrastructureFacade getInstance(IPlugin pPlugin) { if (cInstance == null) { cInstance = new InfrastructureFacade(pPlugin); } return(cInstance); }