LANCommander/LANCommander.SDK/Factories/ProcessExecutionContextFactory.cs

16 lines
No EOL
484 B
C#

using System;
using LANCommander.SDK.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace LANCommander.SDK.Factories;
public class ProcessExecutionContextFactory(IServiceProvider serviceProvider)
{
public ProcessExecutionContext Create()
{
return new ProcessExecutionContext(
serviceProvider.GetService<ILogger<ProcessExecutionContext>>(),
serviceProvider.GetService<LobbyClient>());
}
}