1 write to Id
Microsoft.JSInterop (1)
Implementation\JSObjectReference.cs (1)
33
Id
= id;
22 references to Id
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
JSObjectReferenceJsonConverterTest.cs (2)
31
Assert.Equal(expectedId, deserialized?.
Id
);
45
Assert.Equal(expectedId, deserialized?.
Id
);
Microsoft.JSInterop (15)
Implementation\JSInProcessObjectReference.cs (5)
34
return _jsRuntime.Invoke<TValue>(identifier,
Id
, JSCallType.FunctionCall, args);
43
return _jsRuntime.Invoke<IJSInProcessObjectReference>(identifier,
Id
, JSCallType.NewCall, args);
52
return _jsRuntime.Invoke<TValue>(identifier,
Id
, JSCallType.GetValue);
61
_jsRuntime.Invoke<TValue>(identifier,
Id
, JSCallType.SetValue, value);
71
DisposeJSObjectReferenceById(
Id
);
Implementation\JSObjectReference.cs (9)
41
return _jsRuntime.InvokeAsync<TValue>(
Id
, identifier, JSCallType.FunctionCall, args);
49
return _jsRuntime.InvokeAsync<TValue>(
Id
, identifier, JSCallType.FunctionCall, cancellationToken, args);
57
return _jsRuntime.InvokeAsync<IJSObjectReference>(
Id
, identifier, JSCallType.NewCall, args);
65
return _jsRuntime.InvokeAsync<IJSObjectReference>(
Id
, identifier, JSCallType.NewCall, cancellationToken, args);
73
return _jsRuntime.InvokeAsync<TValue>(
Id
, identifier, JSCallType.GetValue, null);
81
return _jsRuntime.InvokeAsync<TValue>(
Id
, identifier, JSCallType.GetValue, null);
89
await _jsRuntime.InvokeAsync<TValue>(
Id
, identifier, JSCallType.SetValue, [value]);
97
await _jsRuntime.InvokeAsync<TValue>(
Id
, identifier, JSCallType.SetValue, [value]);
107
await _jsRuntime.InvokeVoidAsync("DotNet.disposeJSObjectReferenceById",
Id
);
Implementation\JSObjectReferenceJsonWorker.cs (1)
63
writer.WriteNumber(JSObjectIdKey, objectReference.
Id
);
Microsoft.JSInterop.Tests (5)
Infrastructure\JSObjectReferenceJsonConverterTest.cs (2)
75
Assert.Equal(expectedId, deserialized?.
Id
);
88
Assert.Equal($"{{\"__jsObjectId\":{jsObjectRef.
Id
}}}", json);
Infrastructure\JSStreamReferenceJsonConverterTest.cs (3)
88
Assert.Equal(expectedId, deserialized?.
Id
);
104
Assert.Equal(expectedId, deserialized?.
Id
);
118
Assert.Equal($"{{\"__jsObjectId\":{jsObjectRef.
Id
}}}", json);