Exemplo n.º 1
0
        public Task SendEnvelopeAsync(
            Envelope envelope,
            CancellationToken cancellationToken = default)
        {
            cancellationToken.ThrowIfCancellationRequested();

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

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