예제 #1
0
 /*/
  * public IAsyncEnumerable<int> DuplexTwo()
  * {
  *  return AsyncStream.Generatestream(100);
  * }
  * /*/
 public IAsyncEnumerable <int> DuplexTwo(IAsyncEnumerable <int> incommingStream)
 {
     return(AsyncStream.EnumerateBackStream(incommingStream, _logger));
 }
예제 #2
0
        public IAsyncEnumerable <int> DuplexOne(IAsyncEnumerable <int> stream)
        {
            _logger.LogInformation("Doing 'DuplexOne'");

            return(AsyncStream.EnumerateBackStream(_appTwoClient.StreamDuplexTwo(stream), _logger));
        }