/// <summary> /// Tries to set the access token and token secret values from the specified HTTP response. /// </summary> /// <param name="context">The OAuth context.</param> /// <param name="httpResponseStream">The HTTP response stream.</param> public static bool TrySetAccessTokenValues(OAuthContext context, Stream httpResponseStream) => TrySetTokenAndSecret(httpResponseStream, (token, secret) => context.SetAccessTokenAndSecret(token, secret));
/// <summary> /// Tries to set the request token and token secret values from the specified HTTP response. /// </summary> /// <param name="context">The OAuth context.</param> /// <param name="httpResponseStream">The HTTP response stream.</param> public static bool TrySetUnauthorizedRequestValues(OAuthContext context, Stream httpResponseStream) => TrySetTokenAndSecret(httpResponseStream, context.SetRequestTokenAndSecret);