public void Initialize(string apiKey, string cacheBaseDir, int pollIntervalInSeconds)
        {
            PollIntervalInSeconds = pollIntervalInSeconds;

            if ((string.IsNullOrEmpty(apiKey)) ||
                (string.IsNullOrEmpty(cacheBaseDir)) ||
                (0 == pollIntervalInSeconds))
            {
                return;
            }

            try
            {
                safeBrowsing = new SafeBrowsing(apiKey, cacheBaseDir);
            }
            catch
            {
            }
        }
        public void Initialize(string apiKey, string cacheBaseDir, int pollIntervalInSeconds)
        {
            PollIntervalInSeconds = pollIntervalInSeconds;

            if ((eventLog == null) && EventLog.SourceExists("ReputationService"))
            {
                eventLog = new EventLog("Application", ".", "ReputationService");
            }

            if ((string.IsNullOrEmpty(apiKey)) ||
                (string.IsNullOrEmpty(cacheBaseDir)) ||
                (0 == pollIntervalInSeconds))
            {
                if (eventLog != null) eventLog.WriteEntry("null, string.Empty, or 0 values passed into Initialize().", EventLogEntryType.Warning);
                return;
            }

            try
            {
                safeBrowsing = new SafeBrowsing(apiKey, cacheBaseDir);
            }
            catch
            {
                if (eventLog != null) eventLog.WriteEntry("No local cache for google lists.", EventLogEntryType.Warning);
            }
        }