Remove nop use of Console.OpenStandardInput (#49)
This commit is contained in:
parent
967d7a4cc8
commit
e187ebacc4
1 changed files with 29 additions and 31 deletions
|
|
@ -105,8 +105,7 @@ public sealed class StdioServerTransport : TransportBase, IServerTransport
|
|||
while (!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
_logger.TransportWaitingForMessage(EndpointName);
|
||||
using (Console.OpenStandardInput())
|
||||
{
|
||||
|
||||
var reader = Console.In;
|
||||
var line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
|
||||
if (line == null)
|
||||
|
|
@ -147,7 +146,6 @@ public sealed class StdioServerTransport : TransportBase, IServerTransport
|
|||
// Continue reading even if we fail to parse a message
|
||||
}
|
||||
}
|
||||
}
|
||||
_logger.TransportExitingReadMessagesLoop(EndpointName);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
|
|
|
|||
Loading…
Reference in a new issue