24 lines
667 B
C#
24 lines
667 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Wino.Core.Domain.Enums;
|
|
|
|
namespace Wino.Core.Domain.Interfaces
|
|
{
|
|
public interface IWinoServerConnectionManager
|
|
{
|
|
Task<bool> ConnectAsync();
|
|
Task<bool> DisconnectAsync();
|
|
|
|
WinoServerConnectionStatus Status { get; }
|
|
event EventHandler<WinoServerConnectionStatus> StatusChanged;
|
|
void DisposeConnection();
|
|
|
|
void QueueRequest(IRequestBase request, Guid accountId);
|
|
}
|
|
|
|
public interface IWinoServerConnectionManager<TAppServiceConnection> : IWinoServerConnectionManager, IInitializeAsync
|
|
{
|
|
TAppServiceConnection Connection { get; set; }
|
|
}
|
|
}
|