public async Task <IFileInfo> ReadFileInfoAsync() { if (fileInfo == null) { fileInfo = await FileReaderJsInterop.GetFileInfoFromElement(fileLoaderRef.ElementRef, index);; } return(fileInfo); }
public async Task <IEnumerable <IFileReference> > EnumerateFilesAsync() => Enumerable.Range(0, await FileReaderJsInterop.GetFileCount(ElementRef)) .Select(index => (IFileReference) new FileReference(this, index));
public Task <Stream> OpenReadAsync() { return(FileReaderJsInterop.OpenFileStream(fileLoaderRef.ElementRef, index)); }
internal FileReaderRef(ElementReference elementRef, FileReaderJsInterop fileReaderJsInterop) { this.ElementRef = elementRef; this.FileReaderJsInterop = fileReaderJsInterop; }
public InteropFileStream(int fileReference, long length, FileReaderJsInterop fileReaderJsInterop) { this.fileRef = fileReference; this.length = length; this.fileReaderJsInterop = fileReaderJsInterop; }
public FileReaderService(IJSRuntime jsRuntime, IFileReaderServiceOptions options) { this.Options = options; this._fileReaderJsInterop = new FileReaderJsInterop(jsRuntime, options); }
public FileReaderService(IJSRuntime jsRuntime, IFileReaderServiceOptions options) { this.Options = options; this._fileReaderJsInterop = new FileReaderJsInterop(jsRuntime, options.InitializeOnFirstCall); }
public FileReaderService(IJSRuntime jsRuntime, IInvokeUnmarshalled invokeUnmarshalled) { this._fileReaderJsInterop = new FileReaderJsInterop(jsRuntime, invokeUnmarshalled); }