Implemented interface member:
property
Length
Microsoft.JSInterop.IJSStreamReference.Length
1 write to Length
Microsoft.JSInterop (1)
Implementation\JSStreamReference.cs (1)
30
Length
= totalLength;
5 references to Length
Microsoft.JSInterop (3)
Implementation\JSStreamReference.cs (3)
36
if (
Length
> maxAllowedSize)
38
throw new ArgumentOutOfRangeException(nameof(maxAllowedSize), $"The incoming data stream of length {
Length
} exceeds the maximum allowed length {maxAllowedSize}.");
41
return await _jsRuntime.ReadJSDataAsStreamAsync(this,
Length
, cancellationToken);
Microsoft.JSInterop.Tests (2)
Infrastructure\JSStreamReferenceJsonConverterTest.cs (2)
89
Assert.Equal(expectedLength, deserialized?.
Length
);
105
Assert.Equal(expectedLength, deserialized?.
Length
);