Skip to content

Commit

Permalink
Refactor GetStream methods in OpenedMailFolder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Royer committed Nov 6, 2024
1 parent 28e62e6 commit 0f6e568
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/Paillave.Etl.Mail/OpenedMailFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1288,4 +1288,44 @@ IEnumerator IEnumerable.GetEnumerator()
{
return ((IEnumerable)_mailFolder).GetEnumerator();
}

public Stream GetStream(UniqueId uid, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStream(uid, cancellationToken, progress);
}

public Task<Stream> GetStreamAsync(UniqueId uid, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStreamAsync(uid, cancellationToken, progress);
}

public Stream GetStream(int index, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStream(index, cancellationToken, progress);
}

public Task<Stream> GetStreamAsync(int index, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStreamAsync(index, cancellationToken, progress);
}

public Stream GetStream(UniqueId uid, BodyPart part, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStream(uid, part, cancellationToken, progress);
}

public Task<Stream> GetStreamAsync(UniqueId uid, BodyPart part, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStreamAsync(uid, part, cancellationToken, progress);
}

public Stream GetStream(int index, BodyPart part, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStream(index, part, cancellationToken, progress);
}

public Task<Stream> GetStreamAsync(int index, BodyPart part, CancellationToken cancellationToken = default, ITransferProgress progress = null)
{
return _mailFolder.GetStreamAsync(index, part, cancellationToken, progress);
}
}

0 comments on commit 0f6e568

Please sign in to comment.