public ChannelReaderService(MessageChannel messageChannel)
 => _channelReader = messageChannel.Reader;
Пример #2
0
        public ChannelWriterService(MessageChannel messageChannel, IHostApplicationLifetime hostApplicationLifetime)
        {
            _channelWriter = messageChannel.Writer;

            _hostApplicationLifetime = hostApplicationLifetime;
        }