internal OAuthShortcode(OAuthOptions options, ShortcodeCreateResponse response) { this.options = options; this.Code = response.Code; this.Handle = response.Handle; this.ExpiresAt = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(response.ExpiresIn); }
/// <summary> /// Creates a new instance of the OAuth client. /// </summary> /// <param name="options">Options to use</param> public OAuthClient(OAuthOptions options) { this.options = options; }