Beispiel #1
0
 public FileListEntryStream(IJSRuntime jsRuntime, ElementReference inputFileElement, FileListEntryImpl file)
 {
     _jsRuntime        = jsRuntime;
     _inputFileElement = inputFileElement;
     _file             = file;
 }
Beispiel #2
0
 public RemoteFileListEntryStream(IJSRuntime jsRuntime, ElementReference inputFileElement, FileListEntryImpl file, int maxMessageSize, int maxBufferSize)
     : base(jsRuntime, inputFileElement, file)
 {
     _maxMessageSize = maxMessageSize;
     _blockSequence  = new PreFetchingSequence <Block>(
         FetchBase64Block,
         (file.Size + _maxMessageSize - 1) / _maxMessageSize,
         Math.Max(1, maxBufferSize / _maxMessageSize)); // Degree of parallelism on fetch
     _currentBlockDecodingBuffer = new byte[_maxMessageSize];
 }
Beispiel #3
0
 public SharedMemoryFileListEntryStream(IJSRuntime jsRuntime, ElementReference inputFileElement, FileListEntryImpl file)
     : base(jsRuntime, inputFileElement, file)
 {
 }