/// <include file='Avalara.AvaTax.Adapter.Doc.xml' path='adapter/common/members[@name="InternalConstructor"]/*' />
        public ServiceConfig()
        {
            string configFileName = Utilities.ConfigFileName();

            if (configFileName != null && configFileName != "")
            {
                _security = (RequestSecurity)XmlSerializerSectionHandler.CreateFromXmlFile(configFileName, "RequestSecurity");
            }

            if (_security == null)
            {
                //no config file or an invalid config file was found.
                //let's create a default one in case the consumer wants to fill in all fields manually
                _security = new RequestSecurity();
            }
        }
        /// <include file='Avalara.AvaTax.Adapter.Doc.xml' path='adapter/common/members[@name="Constructor"]/*' />
        public BaseSvc()
        {
            //this should be done first upon entering the assembly; expected that AddressSvc and TaxSvc will be
            //    the only instantiated classes and therefore its safe to do this here.

            _avaLog = AvaLogger.GetLogger();
            _avaLog.Debug(string.Format("Instantiating BaseSvc: {0}", _uniqueId));

            string configFileName = Utilities.ConfigFileName();

            if (configFileName != null && configFileName != "")
            {
                _config = (ServiceConfig)XmlSerializerSectionHandler.CreateFromXmlFile(configFileName, "ServiceConfig");
            }
            if (_config == null)
            {
                //no config file or an invalid config file was found.
                //let's create a default one in case the consumer wants to fill in all fields manually
                _config = new ServiceConfig();
            }
        }