الملفات
pingerino/Services/Interfaces/ISystemService.cs

17 أسطر
724 B
C#

using System;
using System.Threading;
using System.Threading.Tasks;
namespace Pingerino.Services.Interfaces
{
public interface ISystemService : IDisposable
{
System.Threading.Tasks.Task<bool> CleanTemporaryFilesAsync(IProgress<int> progress = null, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<bool> CreateStartupTaskAsync(string taskName, string executablePath);
System.Threading.Tasks.Task<bool> RemoveStartupTaskAsync(string taskName);
System.Threading.Tasks.Task<bool> IsStartupTaskExistsAsync(string taskName);
void OpenNetworkAdaptersControl();
System.Threading.Tasks.Task<bool> RunExternalScriptAsync(string scriptPath);
}
}