예제 #1
0
 private DomainFacade(IPlugin pPlugin)
 {
     cPlugin         = pPlugin;
     cObserverList   = new List <IObserver>();
     cInfrastructure = InfrastructureFacade.getInstance(pPlugin);
     cRecordList     = new List <HTTPRequests>();
 }
예제 #2
0
        /// <summary>
        /// Create single instance
        /// </summary>
        /// <returns></returns>
        public static InfrastructureFacade getInstance(IPlugin pPlugin)
        {
            if (cInstance == null)
            {
                cInstance = new InfrastructureFacade(pPlugin);
            }

            return(cInstance);
        }