// =========================================================================
 // Constructor
 // =========================================================================
 private Web()
 {
     _ci     = CultureInfo.InvariantCulture;
     _login  = Login.Instance;
     _config = Config.Instance;
     _apiKey = APIKey.Instance;
     ServicePointManager.DefaultConnectionLimit = DefaultConnectionLimit;
 }
        // =========================================================================
        // Functions (Static)
        // =========================================================================
        public static APIKey Load()
        {
            Assembly     thisAssembly = Assembly.GetExecutingAssembly();
            const string manualPath   = @"IntegrationArcMap.Doc.APIKey.xml";
            Stream       manualStream = thisAssembly.GetManifestResourceStream(manualPath);

            if (manualStream != null)
            {
                _apiKey = (APIKey)XmlAPIKey.Deserialize(manualStream);
                manualStream.Close();
            }

            return(_apiKey);
        }