ChatterBox.Client.Console.ChatterBoxConsoleClient.StartReading C# (CSharp) Method

StartReading() private method

private StartReading ( ) : void
return void
        private void StartReading()
        {
            Task.Run(async () =>
            {
                try
                {
                    while (true)
                    {
                        var request = await _reader.ReadLineAsync();
                        if (request == null) break;
                        Logger.Debug($"RECEIVED: {request}");
                        ServerReadProxy.ProcessRequest(request);
                    }
                }
                catch (Exception exception)
                {
                    Logger.Warn("Disconnected during socket read operation due to exception", exception);
                }
            });
        }