Ejemplo n.º 1
0
        public virtual async Task <Notification> OnReceivingAsync(Notification envelope, CancellationToken cancellationToken)
        {
            if (_eventsToRemovePendingMessage != null &&
                !_eventsToRemovePendingMessage.Contains(envelope.Event))
            {
                return(envelope);
            }

            var messageKey = _keyProvider.GetMessageKey(envelope, _channel);
            await _messageStorage.RemoveAsync(_channelKey, messageKey, cancellationToken);

            return(envelope);
        }