public async Task PerformMovieOrganization(MovieFileOrganizationRequest request)
        {
            // The OrganizeWithCorrection function is not purely async. To workaround this, use .Yield() to immediately return to the caller
            //await Task.Yield();

            var organizer = new MovieFileOrganizer(_fileOrganizationService, _config, _fileSystem, _logger, _libraryManager,
                _libraryMonitor, _providerManager, _serverManager, _localizationManager);

            await organizer.OrganizeWithCorrection(request, GetAutoOrganizeOptions(), CancellationToken.None).ConfigureAwait(false); ;
        }
예제 #2
0
        public async Task PerformMovieOrganization(MovieFileOrganizationRequest request)
        {
            // The OrganizeWithCorrection function is not purely async. To workaround this, use .Yield() to immediately return to the caller
            //await Task.Yield();

            var organizer = new MovieFileOrganizer(_fileOrganizationService, _config, _fileSystem, _logger, _libraryManager,
                                                   _libraryMonitor, _providerManager, _serverManager, _localizationManager);

            await organizer.OrganizeWithCorrection(request, GetAutoOrganizeOptions(), CancellationToken.None).ConfigureAwait(false);;
        }