This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ConcurrentHashSet<T> : HashSet<T> | |
| { | |
| public new bool Add(T item) | |
| { | |
| lock (this) | |
| { | |
| return base.Add(item); | |
| } | |
| } | |
| // ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @page "/upload" | |
| @using System.IO | |
| @using System.Text | |
| @using System.Net.Http.Headers | |
| @using Tewr.Blazor.FileReader | |
| @using Microsoft.Extensions.Configuration | |
| @inject HttpClient httpClient | |
| @inject NavigationManager NavigationManager | |
| @inject IFileReaderService fileReaderService |