OnMessageAsync() public method

public OnMessageAsync ( Task>.Func processMessageAsync ) : System.Threading.Tasks.Task
processMessageAsync Task>.Func
return System.Threading.Tasks.Task
        protected override async Task StartAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            _receiver = CreateReceiver(_config, _channelOrKey);
            await _receiver.OnMessageAsync(ProcessMessageAsync);
        }
        protected override async Task StartAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            _receiver = CreateReceiver(_config, _channelOrKey);
            await _receiver.OnMessageAsync(ProcessMessageAsync);
        }