Ejemplo n.º 1
0
        public async void GetFollowedAccounts(NetworkStream stream, string req1Content)
        {
            IList <AccountModel> accountModels = await _accountRepo.GetFollowedAccounts(Int32.Parse(req1Content));

            string reply = JsonSerializer.Serialize(accountModels);

            byte[] bytesWrite = Encoding.ASCII.GetBytes(reply);
            stream.Write(bytesWrite, 0, bytesWrite.Length);
        }