13 lines
339 B
C#
13 lines
339 B
C#
|
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
|
|
||
|
|
namespace LANCommander.Server.ImportExport.Factories;
|
||
|
|
|
||
|
|
public class ExportContextFactory(IServiceProvider serviceProvider)
|
||
|
|
{
|
||
|
|
public ExportContext Create()
|
||
|
|
{
|
||
|
|
var scope = serviceProvider.CreateScope();
|
||
|
|
|
||
|
|
return scope.ServiceProvider.GetService<ExportContext>();
|
||
|
|
}
|
||
|
|
}
|