OnMessageAsync() public method

public OnMessageAsync ( Task>.Func processMessageAsync ) : System.Threading.Tasks.Task
processMessageAsync Task>.Func
return System.Threading.Tasks.Task
コード例 #1
0
        protected override async Task StartAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            _receiver = CreateReceiver(_config, _channelOrKey);
            await _receiver.OnMessageAsync(ProcessMessageAsync);
        }
コード例 #2
0
        protected override async Task StartAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

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