16 references to GetObjectReference
Microsoft.JSInterop (3)
Infrastructure\DotNetDispatcher.cs (2)
55targetInstance = jsRuntime.GetObjectReference(invocationInfo.DotNetObjectId); 94targetInstance = jsRuntime.GetObjectReference(invocationInfo.DotNetObjectId);
Infrastructure\DotNetObjectReferenceJsonConverter.cs (1)
51var value = (DotNetObjectReference<TValue>)JSRuntime.GetObjectReference(dotNetObjectId);
Microsoft.JSInterop.Tests (13)
DotNetObjectReferenceTest.cs (3)
74Assert.Same(objRef, jsRuntime.GetObjectReference(objectId)); 79Assert.Throws<ArgumentException>(() => jsRuntime.GetObjectReference(objectId)); 92Assert.Same(objRef, jsRuntime.GetObjectReference(objectId));
Infrastructure\DotNetDispatcherTest.cs (2)
146var resultDto2 = Assert.IsType<DotNetObjectReference<TestDTO>>(jsRuntime.GetObjectReference(property.GetInt64())).Value; 463var resultDto = ((DotNetObjectReference<TestDTO>)jsRuntime.GetObjectReference(3)).Value;
JSInProcessRuntimeTest.cs (3)
59Assert.Same(obj1, runtime.GetObjectReference(1).Value); 60Assert.Same(obj2, runtime.GetObjectReference(2).Value); 61Assert.Same(obj3, runtime.GetObjectReference(3).Value);
JSRuntimeTest.cs (5)
289Assert.Same(obj1Ref, runtime.GetObjectReference(1)); 291Assert.NotSame(obj1Ref, runtime.GetObjectReference(2)); 292Assert.Same(obj2, runtime.GetObjectReference(2).Value); 293Assert.Same(obj3, runtime.GetObjectReference(3).Value); 294Assert.Same(obj1, runtime.GetObjectReference(4).Value);