17 lines
581 B
C#
17 lines
581 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Server.Services.Auth;
|
|
|
|
public interface ISessionRegistry
|
|
{
|
|
void Bind(Guid connectionId, ulong accountId, string token);
|
|
void Unbind(Guid connectionId);
|
|
bool IsAuthenticated(Guid connectionId);
|
|
bool TryGetAccountId(Guid connectionId, out ulong accountId);
|
|
bool TryGet(Guid connectionId, out ulong accountId, out string token);
|
|
void BindCharacter(Guid connectionId, ulong characterId);
|
|
void UnbindCharacter(Guid connectionId);
|
|
bool TryGetCharacter(Guid connectionId, out ulong characterId);
|
|
}
|