Add xmldoc on UserLookupCache's lookup method

This commit is contained in:
Dean Herbert 2020-12-28 20:05:48 +09:00
parent cf29d0c5ef
commit 5ca9a6a980
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@ public class UserLookupCache : MemoryCachingComponent<int, User>
[Resolved] [Resolved]
private IAPIProvider api { get; set; } private IAPIProvider api { get; set; }
/// <summary>
/// Perform an API lookup on the specified user, populating a <see cref="User"/> model.
/// </summary>
/// <param name="userId">The user to lookup.</param>
/// <param name="token">An optional cancellation token.</param>
/// <returns>The populated user, or null if the user does not exist or the request could not be satisfied.</returns>
public Task<User> GetUserAsync(int userId, CancellationToken token = default) => GetAsync(userId, token); public Task<User> GetUserAsync(int userId, CancellationToken token = default) => GetAsync(userId, token);
protected override async Task<User> ComputeValueAsync(int lookup, CancellationToken token = default) protected override async Task<User> ComputeValueAsync(int lookup, CancellationToken token = default)