mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:27:22 +01:00
move marehub to strong api usage (#14)
* move marehub to strong api usage * fix merge issues * latest api * further optimizations
This commit is contained in:
parent
a8f97aee23
commit
777a764ef1
14 changed files with 362 additions and 256 deletions
|
|
@ -66,4 +66,23 @@ internal class IdentityService : IdentificationService.IdentificationServiceBase
|
|||
}
|
||||
return Task.FromResult(new Empty());
|
||||
}
|
||||
|
||||
public override async Task<UidWithIdentMessage> ValidateCachedIdents(MultiUidMessage request, ServerCallContext context)
|
||||
{
|
||||
UidWithIdentMessage response = new UidWithIdentMessage();
|
||||
foreach (var msg in request.Uids)
|
||||
{
|
||||
UidWithIdent msgResp = new()
|
||||
{
|
||||
Uid = msg,
|
||||
Ident = new()
|
||||
};
|
||||
var ident = await _handler.GetIdentForuid(msg.Uid);
|
||||
msgResp.Ident.Ident = ident.CharacterIdent;
|
||||
msgResp.Ident.ServerId = ident.ServerId;
|
||||
response.UidWithIdent.Add(msgResp);
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue