2024-07-17 22:36:10 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2024-07-16 23:28:57 +02:00
|
|
|
|
using Wino.Core.Domain.Enums;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core.Domain.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IWinoServerConnectionManager
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<bool> ConnectAsync();
|
|
|
|
|
|
Task<bool> DisconnectAsync();
|
2024-07-17 22:36:10 +02:00
|
|
|
|
|
|
|
|
|
|
WinoServerConnectionStatus Status { get; }
|
|
|
|
|
|
event EventHandler<WinoServerConnectionStatus> StatusChanged;
|
|
|
|
|
|
void DisposeConnection();
|
2024-07-16 23:28:57 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public interface IWinoServerConnectionManager<TAppServiceConnection> : IWinoServerConnectionManager, IInitializeAsync
|
|
|
|
|
|
{
|
|
|
|
|
|
TAppServiceConnection Connection { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|