Пример #1
0
 /// <summary>
 ///
 /// </summary>
 private DomainFacade(ProxyConfig pConfig, IPlugin pPlugin)
 {
     cPlugin         = pPlugin;
     cObserverList   = new List <IObserver>();
     cInfrastructure = InfrastructureFacade.getInstance(pConfig, pPlugin);
     cRecordList     = new List <POP3Account>();
 }
Пример #2
0
        /// <summary>
        /// Create single instance
        /// </summary>
        /// <param name="pProxyConfig"></param>
        /// <returns></returns>
        public static InfrastructureFacade getInstance(ProxyConfig pProxyConfig, IPlugin pPlugin)
        {
            if (cInstance == null)
            {
                cInstance = new InfrastructureFacade(pProxyConfig, pPlugin);
            }

            return(cInstance);
        }