2024-08-05 00:36:26 +02:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Wino.Core.Domain.Enums;
|
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
namespace Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
|
|
|
|
public interface IStartupBehaviorService
|
2024-08-05 00:36:26 +02:00
|
|
|
{
|
2025-02-16 11:54:23 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets whether Wino Server is set to launch on startup or not.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Task<StartupBehaviorResult> GetCurrentStartupBehaviorAsync();
|
2024-08-05 00:36:26 +02:00
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Enables/disables the current startup behavior for Wino Server.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="isEnabled">Whether to launch enabled or disabled.</param>
|
|
|
|
|
/// <returns>True if operation success, false if not.</returns>
|
|
|
|
|
Task<StartupBehaviorResult> ToggleStartupBehavior(bool isEnabled);
|
2024-08-05 00:36:26 +02:00
|
|
|
}
|