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); }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions