Files
systemrevivalserver/Services/Auth/ISessionRegistry.cs
T
2025-11-29 15:44:45 -05:00

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);
}