Files
ThreadPilot/Services/Core/ISystemService.cs
T
2026-06-24 17:52:45 +02:00

30 lines
671 B
C#

namespace ThreadPilot.Services.Core
{
using System;
public interface ISystemService
{
bool IsAvailable { get; }
event EventHandler<ServiceAvailabilityChangedEventArgs>? AvailabilityChanged;
Task InitializeAsync();
Task DisposeAsync();
}
public class ServiceAvailabilityChangedEventArgs : EventArgs
{
public bool IsAvailable { get; }
public string? Reason { get; }
public ServiceAvailabilityChangedEventArgs(bool isAvailable, string? reason = null)
{
this.IsAvailable = isAvailable;
this.Reason = reason;
}
}
}