Skip to content

RemoteFile not disposing FileStream #12

Description

@ashern

Line 121 in RemoteFile.cs should capture the FileStream with an await using statement to release the stream after download:

public async Task DownloadFile(string outputFile) { await using System.IO.FileStream fileStream = new System.IO.FileStream(outputFile, System.IO.FileMode.Create, System.IO.FileAccess.Write, System.IO.FileShare.None); await DownloadFile(fileStream); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions