Example #1
0
        private LaunchpadClient(Uri launchpadUri, OAuthOptions oauthOptions, string userAgent, HttpClientPool httpClientPool)
        {
            if (launchpadUri == null)
            {
                throw new ArgumentNullException(nameof(launchpadUri));
            }
            if (oauthOptions == null)
            {
                throw new ArgumentNullException(nameof(oauthOptions));
            }

            this.launchpadUri   = UriUtils.EnsureTrailingSlash(launchpadUri);
            this.oauthOptions   = oauthOptions;
            this.userAgent      = userAgent ?? UserAgent.GenerateDefault();
            this.httpClientPool = httpClientPool ?? HttpClientPool.Default;
        }