59 references to DotNetObjectReference
Aspire.Dashboard (4)
Components\Controls\Chart\PlotlyChart.razor.cs (1)
83_chartInteropReference = DotNetObjectReference.Create(new ChartInterop(this));
Components\Layout\MainLayout.razor.cs (2)
141_shortcutManagerReference = DotNetObjectReference.Create(ShortcutManager); 142_layoutReference = DotNetObjectReference.Create(this);
Components\Resize\BrowserDimensionWatcher.cs (1)
35await JS.InvokeVoidAsync("window.listenToWindowResize", DotNetObjectReference.Create(this));
BasicTestApp (5)
InteropTest\JavaScriptInterop.cs (4)
394{ "Some sync instance", DotNetObjectReference.Create(new TestDTO(1000)) } 404{ "Some async instance", DotNetObjectReference.Create(new TestDTO(1001)) } 466OutgoingByRef = DotNetObjectReference.Create(new TestDTO(1234)), 482OutgoingByRef = DotNetObjectReference.Create(new TestDTO(1234)),
ServerReliability\JSInterop.cs (1)
13return DotNetObjectReference.Create(new ImportantInformation());
Microsoft.AspNetCore.Components.Web (3)
Forms\InputFile\InputFileJsCallbacksRelay.cs (1)
20DotNetReference = DotNetObjectReference.Create(this);
Virtualization\VirtualizeJsInterop.cs (1)
29_selfReference = DotNetObjectReference.Create(this);
WebRenderer.cs (1)
39_interopMethodsReference = DotNetObjectReference.Create(
Microsoft.JSInterop.Tests (47)
DotNetObjectReferenceTest.cs (6)
12Assert.Same(obj, DotNetObjectReference.Create(obj).Value); 20var objRef = DotNetObjectReference.Create(new object()); 35var objRef = DotNetObjectReference.Create(new object()); 49var objRef = DotNetObjectReference.Create("Hello world"); 67var objRef = DotNetObjectReference.Create("Hello world"); 86var objRef = DotNetObjectReference.Create("Hello world");
Infrastructure\DotNetDispatcherTest.cs (23)
117var objectRef = DotNetObjectReference.Create(arg3); 157var objectRef = DotNetObjectReference.Create(arg3); 180var objectRef = DotNetObjectReference.Create(targetInstance); 197var objectRef = DotNetObjectReference.Create(targetInstance); 214var objectRef = DotNetObjectReference.Create(targetInstance); 233var objectRef = DotNetObjectReference.Create(targetInstance); 252var objectRef = DotNetObjectReference.Create(targetInstance); 453DotNetObjectReference.Create(targetInstance), 454DotNetObjectReference.Create(arg2)); 473DotNetObjectReference.Create(targetInstance)); 489DotNetObjectReference.Create(targetInstance)); 517DotNetObjectReference.Create(targetInstance)); 531DotNetObjectReference.Create(targetInstance)); 564var objectRef = DotNetObjectReference.Create(new TestDTO { IntVal = 4 }); 589var arg1Ref = DotNetObjectReference.Create(targetInstance); 590var arg2Ref = DotNetObjectReference.Create(arg2); 628var arg1Ref = DotNetObjectReference.Create(targetInstance); 629var arg2Ref = DotNetObjectReference.Create(arg2); 657var arg1Ref = DotNetObjectReference.Create(targetInstance); 886DotNetObjectReference.Create(new TestDTO // Return by ref 916DotNetObjectReference.Create(new TestDTO 936SomeDTORef = DotNetObjectReference.Create(new TestDTO // Return by ref 955SomeDTORef = DotNetObjectReference.Create(new TestDTO // Return by ref
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (9)
18var dotNetObjectRef = DotNetObjectReference.Create(new TestModel()); 32var dotNetObjectRef = DotNetObjectReference.Create(new TestModel()); 46var dotNetObjectRef = DotNetObjectReference.Create(input); 61var dotNetObjectRef = DotNetObjectReference.Create(input); 76var dotNetObjectRef = DotNetObjectReference.Create(input); 96var ref1 = DotNetObjectReference.Create(instance1); 97var ref2 = DotNetObjectReference.Create(instance2); 114var dotNetObjectRef = DotNetObjectReference.Create(input); 134var dotNetObjectRef = DotNetObjectReference.Create(new TestModel());
JSInProcessRuntimeTest.cs (5)
42DotNetObjectReference.Create(obj1), 45{ "obj2", DotNetObjectReference.Create(obj2) }, 46{ "obj3", DotNetObjectReference.Create(obj3) }, 77DotNetObjectReference.Create(obj1), 79DotNetObjectReference.Create(obj2))!;
JSRuntimeTest.cs (4)
271var obj1Ref = DotNetObjectReference.Create(obj1); 272var obj1DifferentRef = DotNetObjectReference.Create(obj1); 277{ "obj2", DotNetObjectReference.Create(obj2) }, 278{ "obj3", DotNetObjectReference.Create(obj3) },