mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
505 B
15 lines
505 B
using ErsatzTV.Core.MediaSources; |
|
using Newtonsoft.Json; |
|
|
|
namespace ErsatzTV.Scanner.Application.MediaSources; |
|
|
|
public class ScannerProgressUpdateHandler : INotificationHandler<ScannerProgressUpdate> |
|
{ |
|
public Task Handle(ScannerProgressUpdate notification, CancellationToken cancellationToken) |
|
{ |
|
// dump progress to stdout for main process to read |
|
string json = JsonConvert.SerializeObject(notification); |
|
Console.WriteLine(json); |
|
return Task.CompletedTask; |
|
} |
|
}
|
|
|