code analysis and cleanup (#1411)

* cleanup scanner project

* cleanup infrastructure projects

* cleanup ffmpeg project

* cleanup core project

* cleanup app project

* cleanup main project

* update dependencies

* code cleanup
This commit is contained in:
Jason Dove
2023-09-03 06:23:42 -05:00
committed by GitHub
parent 6414471ace
commit 245c4ec359
308 changed files with 1438 additions and 1032 deletions
+4 -4
View File
@@ -22,7 +22,7 @@ public class SearchIndexService : BackgroundService
_logger = logger;
}
protected override async Task ExecuteAsync(CancellationToken cancellationToken)
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
await Task.Yield();
@@ -30,7 +30,7 @@ public class SearchIndexService : BackgroundService
{
_logger.LogInformation("Search index worker service started");
await foreach (ISearchIndexBackgroundServiceRequest request in _channel.ReadAllAsync(cancellationToken))
await foreach (ISearchIndexBackgroundServiceRequest request in _channel.ReadAllAsync(stoppingToken))
{
using IServiceScope scope = _serviceScopeFactory.CreateScope();
IMediator mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
@@ -40,10 +40,10 @@ public class SearchIndexService : BackgroundService
switch (request)
{
case ReindexMediaItems reindexMediaItems:
await mediator.Send(reindexMediaItems, cancellationToken);
await mediator.Send(reindexMediaItems, stoppingToken);
break;
case RemoveMediaItems removeMediaItems:
await mediator.Send(removeMediaItems, cancellationToken);
await mediator.Send(removeMediaItems, stoppingToken);
break;
}
}