예제 #1
0
 /// <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);
예제 #2
0
 public PerformanceCacheLookup(ScoreInfo info)
 {
     ScoreInfo = info;
 }
예제 #3
0
 public PerformanceCacheLookup(ScoreInfo info)
 {
     ScoreHash    = info.Hash;
     LocalScoreID = info.ID;
 }