Beispiel #1
0
 public SelectedFileReader(HttpClient http,
                           SelectedFile file,
                           FileBlobUrls fileBlobUrls)
 {
     _http         = http ?? throw new ArgumentNullException(nameof(http));
     File          = file ?? throw new ArgumentNullException(nameof(file));
     _fileBlobUrls = fileBlobUrls ?? throw new ArgumentNullException(nameof(fileBlobUrls));
 }
Beispiel #2
0
 public SelectedFileReader(HttpClient http,
                           IJSRuntime jsRuntime,
                           SelectedFile file,
                           FileBlobUrls fileBlobUrls)
 {
     _http         = http ?? throw new ArgumentNullException(nameof(http));
     _jsRuntime    = (IJSInProcessRuntime)jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime));
     File          = file ?? throw new ArgumentNullException(nameof(file));
     _fileBlobUrls = fileBlobUrls ?? throw new ArgumentNullException(nameof(fileBlobUrls));
 }