Ejemplo n.º 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);
Ejemplo n.º 2
0
 public PerformanceCacheLookup(ScoreInfo info)
 {
     ScoreInfo = info;
 }
Ejemplo n.º 3
0
 public PerformanceCacheLookup(ScoreInfo info)
 {
     ScoreHash    = info.Hash;
     LocalScoreID = info.ID;
 }