Skip to content

Propose: Add the async Write in IPDFObject #76

@lindexi

Description

@lindexi

public interface IPDFObject
{
/// <summary>
/// Writes the <see cref="IPDFObject"/> to a stream.
/// </summary>
/// <param name="stream">The stream on which the <see cref="IPDFObject"/> should be written.</param>
/// <param name="writer">A <see cref="StreamWriter"/> used to write text to the stream. Always call <see cref="StreamWriter.Flush"/> before returning from this method!</param>
void Write(Stream stream, StreamWriter writer);
}

How about add the WriteAsync to IPDFObject?

    public interface IPDFObject
    {
        /// <summary>
        /// Writes the <see cref="IPDFObject"/> to a stream.
        /// </summary>
        /// <param name="stream">The stream on which the <see cref="IPDFObject"/> should be written.</param>
        /// <param name="writer">A <see cref="StreamWriter"/> used to write text to the stream. Always call <see cref="StreamWriter.Flush"/> before returning from this method!</param>
        void Write(Stream stream, StreamWriter writer);
+       Task WriteAsync(Stream stream, StreamWriter writer);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions