Files

17 lines
578 B
C#

using System;
using System.Threading.Tasks;
namespace GameServices.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);
}