Skip to content

FluentInputFile stops my debug session #2831

Closed Answered by pmeems
pmeems asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to be an issue with my browser. I was using Brave for debugging.
I now switched the Edge and the debug session stays active and I can debug my code.
Not sure why, both browsers are Chrome-based.

I also updated my method that reads the stream:

    private async Task OnFileUploadedAsync(FluentInputFileEventArgs file)
    {
        ProgressPercent = file.ProgressPercent;
        ProgressTitle = file.ProgressTitle;
        if (file.Stream is null) return;

        // Read the stream:
        using var reader = new StreamReader(file.Stream);
        var csvData = (await reader.ReadToEndAsync(CancellationToken.None).ConfigureAwait(false))
            .Split('\n');
        // Use the cs…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pmeems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant