/// <summary> /// Create a gateway for talking to Google Calendar /// </summary> /// <param name="login">User login to use</param> /// <param name="password">User credential to use</param> /// <param name="domain">Google Apps Domain to user</param> /// <param name="throttler">Optional connection throttler to use</param> public GCalGateway( string login, string password, string domain, IConnectionThrottle throttler) { this.googleAppsLogin = login; this.googleAppsPassword = password; this.googleAppsDomain = domain; if (throttler != null) { connectionThrottler = throttler; } else { connectionThrottler = defaultConnectionThrottler; } InitializeCalendarService(); logDirectory = ConfigCache.GCalLogDirectory; }