LANCommander/LANCommander.Launcher.Services/ImportManagerService.cs

22 lines
526 B
C#
Raw Permalink Normal View History

2025-02-06 20:54:03 -06:00
using System.Threading.Tasks;
namespace LANCommander.Launcher.Services;
public class ImportManagerService
{
private readonly ImportService ImportService;
public ImportManagerService(ImportService importService)
{
ImportService = importService;
}
public delegate Task OnImportRequestedHandler();
public event OnImportRequestedHandler OnImportRequested;
public async Task RequestImport()
{
if (OnImportRequested != null)
await OnImportRequested.Invoke();
}
}