/// <inheritdoc /> /// <summary> /// Initialize the EVE Standard Library with Single Sign On support. /// </summary> /// <param name="userAgent"></param> /// <param name="dataSource"></param> /// <param name="timeOut"></param> /// <param name="callbackUri"></param> /// <param name="clientId"></param> /// <param name="secretKey"></param> public EVEStandardAPI(string userAgent, DataSource dataSource, TimeSpan timeOut, string callbackUri, string clientId, string secretKey, SSOVersion ssoVersion = SSOVersion.v1, SSOMode ssoMode = SSOMode.Web) : this(userAgent, dataSource, timeOut) { if (ssoVersion == SSOVersion.v1) { SSO.HTTP = http; SSO = new SSO(callbackUri, clientId, secretKey, dataSource); } else { SSOv2.HTTP = http; SSOv2 = new SSOv2(callbackUri, clientId, secretKey, dataSource, ssoMode); } }
/// <inheritdoc /> /// <summary> /// Initialize the EVE Standard Library with Single Sign On support. /// </summary> /// <param name="userAgent"></param> /// <param name="dataSource"></param> /// <param name="timeOut"></param> /// <param name="callbackUri"></param> /// <param name="clientId"></param> /// <param name="secretKey"></param> /// <param name="handler"></param> public EVEStandardAPI(string userAgent, DataSource dataSource, TimeSpan timeOut, string callbackUri, string clientId, string secretKey, HttpClientHandler handler = null) : this(userAgent, dataSource, timeOut, handler) { SSO.HTTP = http; SSO = new SSO(callbackUri, clientId, secretKey, dataSource); }