Esempio n. 1
0
        public void SetNonPersistentAuthInfo(Uri uri, AuthInfo authInfo) {
            var key = String.Format("{0}://{1}:{2}", uri.Scheme, uri.Host, uri.Port);

            if (authInfo == null
                || authInfo.Username == null && authInfo.Password == null && authInfo.Domain == null) {
                AuthInfo val;
                _nonPersistentAuthCache.TryRemove(key, out val);
            } else
                _nonPersistentAuthCache.AddOrUpdate(key, authInfo, (s, info) => authInfo);
        }
 public void SetAuthInfo(Uri uri, AuthInfo authInfo) {
     _authInfos[uri] = authInfo;
 }
 public void SetAuthInfo(Uri uri, AuthInfo authInfo) {
     _settings.AppOptions.SetAuthInfo(uri, authInfo);
 }