Ejemplo n.º 1
0
 /// <summary>
 /// Gets the information from the data source for the playlist associated with the specified unique identifier.
 /// </summary>
 /// <param name="id">The unique identifier from the data source for the playlist.</param>
 /// <param name="cancellationToken">A token to observe while waiting for the task to complete.</param>
 /// <returns>
 /// A task that represents the asynchronous operation.
 /// </returns>
 public Task <MediaPlaylist> FindByIdAsync(int id, CancellationToken cancellationToken)
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(Playlists.FindAsync(cancellationToken, id));
 }