Esempio n. 1
0
 private DomainFacade(InjectionConfig pProxyConfig, IPlugin pPlugin)
 {
     cPlugin         = pPlugin;
     cInfrastructure = InfrastructureFacade.getInstance(pProxyConfig, pPlugin);
     cRecordList     = new List <InjectedURLRecord>();
     cObservers      = new List <IObserver>();
 }
Esempio n. 2
0
        /// <summary>
        /// Create single instance
        /// </summary>
        /// <param name="pProxyConfig"></param>
        /// <returns></returns>
        public static InfrastructureFacade getInstance(InjectionConfig pProxyConfig, IPlugin pPlugin)
        {
            if (cInstance == null)
            {
                cInstance = new InfrastructureFacade(pProxyConfig, pPlugin);
            }

            return(cInstance);
        }