diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-20 23:16:43 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-20 23:16:43 -0400 |
| commit | f3a7307ebb9a1a484a82563c4cfab6bf461c7631 (patch) | |
| tree | 9cfc2177081b9713215e4453b45e4213dc67c200 /MediaBrowser.Controller/Library/ILibraryPrescanTask.cs | |
| parent | 96e8f053b56a385dc0f8c8e2c81fd0ac23794692 (diff) | |
reduce requests against tvdb by getting entire series metadata at once
Diffstat (limited to 'MediaBrowser.Controller/Library/ILibraryPrescanTask.cs')
| -rw-r--r-- | MediaBrowser.Controller/Library/ILibraryPrescanTask.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/ILibraryPrescanTask.cs b/MediaBrowser.Controller/Library/ILibraryPrescanTask.cs new file mode 100644 index 000000000..6a48ba777 --- /dev/null +++ b/MediaBrowser.Controller/Library/ILibraryPrescanTask.cs @@ -0,0 +1,20 @@ +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace MediaBrowser.Controller.Library +{ + /// <summary> + /// An interface for tasks that run prior to the media library scan + /// </summary> + public interface ILibraryPrescanTask + { + /// <summary> + /// Runs the specified progress. + /// </summary> + /// <param name="progress">The progress.</param> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns>Task.</returns> + Task Run(IProgress<double> progress, CancellationToken cancellationToken); + } +} |
