/// <summary> /// Calculates performance for the given <see cref="ScoreInfo"/>. /// </summary> /// <param name="score">The score to do the calculation on. </param> /// <param name="token">An optional <see cref="CancellationToken"/> to cancel the operation.</param> public Task <double?> CalculatePerformanceAsync([NotNull] ScoreInfo score, CancellationToken token = default) => GetAsync(new PerformanceCacheLookup(score), token);
public PerformanceCacheLookup(ScoreInfo info) { ScoreInfo = info; }
public PerformanceCacheLookup(ScoreInfo info) { ScoreHash = info.Hash; LocalScoreID = info.ID; }