dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Serialization

IJSStreamReferenceHelper Class

Extension methods for Microsoft.JSInterop.IJSStreamReference to facilitate reading data from JavaScript streams.

public static class IJSStreamReferenceHelper

Inheritance System.Object 🡒 IJSStreamReferenceHelper

Methods

IJSStreamReferenceHelper.ReadJsStreamReference(this IJSStreamReference, Type, long) Method

Convenience method to deserialize an Microsoft.JSInterop.IJSStreamReference to a specific .NET type. This overload returns an System.Object, so the type does not need to be known at compile time.

public static System.Threading.Tasks.Task<object?> ReadJsStreamReference(this Microsoft.JSInterop.IJSStreamReference jsStreamReference, System.Type returnType, long maxAllowedSize=1000000000L);

Parameters

jsStreamReference Microsoft.JSInterop.IJSStreamReference

returnType System.Type

maxAllowedSize System.Int64

Returns

System.Threading.Tasks.Task<System.Object>

IJSStreamReferenceHelper.ReadJsStreamReference(this IJSStreamReference, long) Method

Convenience method to deserialize an Microsoft.JSInterop.IJSStreamReference to a specific .NET type.

public static System.Threading.Tasks.Task<T?> ReadJsStreamReference<T>(this Microsoft.JSInterop.IJSStreamReference jsStreamReference, long maxAllowedSize=1000000000L);

Type parameters

T

Parameters

jsStreamReference Microsoft.JSInterop.IJSStreamReference

maxAllowedSize System.Int64

Returns

System.Threading.Tasks.Task<T>