Skip to content

Commit

Permalink
Update AuthorizationCodeCollectRequest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Dec 24, 2023
1 parent 5cac527 commit 00ff4b7
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,17 @@ namespace DisCatSharp.Extensions.OAuth2Web.EventHandling.Requests;
/// <summary>
/// Represents a authorization code exchange event that is being waited for.
/// </summary>
internal sealed class AuthorizationCodeCollectRequest : AuthorizationCodeMatchRequest
/// <remarks>
/// Initializes a new instance of the <see cref="AuthorizationCodeCollectRequest"/> class.
/// </remarks>
/// <param name="state">The state to wait for.</param>
/// <param name="predicate">The predicate.</param>
/// <param name="cancellation">The cancellation token.</param>
internal sealed class AuthorizationCodeCollectRequest(string state, Func<AuthorizationCodeExchangeEventArgs, bool> predicate, CancellationToken cancellation)
: AuthorizationCodeMatchRequest(state, predicate, cancellation)
{
/// <summary>
/// Gets the collected.
/// </summary>
public ConcurrentBag<AuthorizationCodeExchangeEventArgs> Collected { get; private set; }

/// <summary>
/// Initializes a new instance of the <see cref="AuthorizationCodeCollectRequest"/> class.
/// </summary>
/// <param name="state">The state to wait for.</param>
/// <param name="predicate">The predicate.</param>
/// <param name="cancellation">The cancellation token.</param>
public AuthorizationCodeCollectRequest(string state, Func<AuthorizationCodeExchangeEventArgs, bool> predicate, CancellationToken cancellation)
: base(state, predicate, cancellation)
{ }
public ConcurrentBag<AuthorizationCodeExchangeEventArgs> Collected { get; private set; } = [];
}

0 comments on commit 00ff4b7

Please sign in to comment.