public Service() { ApplicationDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); ApplicationName = AppConfig.ApplicationName; ApplicationVersion = AppConfig.ApplicationVersion; DataAccessLayer = new MockDataAccessLayer(); Geocoder = new GoogleGeocoder(); GeocoderStats = new GoogleGeocoderStats(); GeocoderQueue = new List <GoogleGeocoderJob>(); IsGeocoding = false; Random = new Random(); // Execute the stuff from designer.cs InitializeComponent(); // Allow user to override the Interval specified in designer.cs MainTimer.Interval = AppConfig.Interval * 1000 * 60; Log.Info("Main event loop will run every {0} minutes.", AppConfig.Interval); }
public void ResetGeocoderStats() { GeocoderStats = new GoogleGeocoderStats(); }