ImportContext wasn't being set on the importers which caused problems during the import process. Fixed that and added a bunch more logging around the place so we can get better tracing into what's happening through the import pipeline
13 lines
No EOL
335 B
C#
13 lines
No EOL
335 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace LANCommander.Launcher.Services.Import.Factories;
|
|
|
|
public class ImportContextFactory(IServiceProvider serviceProvider)
|
|
{
|
|
public ImportContext Create()
|
|
{
|
|
var scope = serviceProvider.CreateScope();
|
|
|
|
return new ImportContext(scope.ServiceProvider);
|
|
}
|
|
} |