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

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

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