Exemplo n.º 1
0
        public override async Task StartAsync()
        {
            var observableChannel = await ChannelFactory.BuildChannelAsync(EventLoopGroupFactory, _peerSettings.BindAddress, _peerSettings.Port).ConfigureAwait(false);

            Channel = observableChannel.Channel;

            MessageStream = observableChannel.MessageStream;
            _messageHandlers.ToList()
            .ForEach(h => h.StartObserving(MessageStream));
            Discovery?.DiscoveryAsync();
            _healthChecker.Run();
        }