Exemplo n.º 1
0
        public async ValueTask ExecuteAsync(RegisterSessionCommand command)
        {
            var loginInfo = new RegisterRequest
            {
                SessionId   = command.SessionId,
                ConnectorId = command.ConnectorId,
                Name        = command.Name
            };

            await m_MessageQueueService.RequestAsync(
                "session.register",
                loginInfo.ToByteArray()).ConfigureAwait(false);
        }
Exemplo n.º 2
0
Arquivo: Packet.cs Projeto: twd2/chat
 public static void Write(Stream stream, RegisterRequest p)
 {
     Write(stream, p.ToByteArray(), PACKET_REGISTER);
 }