Example #1
0
        public Task SendEnvelopeAsync(
            Envelope envelope,
            CancellationToken cancellationToken = default)
        {
            cancellationToken.ThrowIfCancellationRequested();

            _envelopes.Add(envelope);
            EnvelopeSent?.Invoke(this, envelope);

            return(Task.CompletedTask);
        }
Example #2
0
 public void Handle(EnvelopeSent message)
 {
     handle(message.Envelope, MessageTrack.Sent, message.Uri);
 }