57 references to Create
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (1)
142
_layoutReference = DotNetObjectReference.
Create
(this);
Components\Resize\BrowserDimensionWatcher.cs (1)
35
await 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)) }
466
OutgoingByRef = DotNetObjectReference.
Create
(new TestDTO(1234)),
482
OutgoingByRef = DotNetObjectReference.
Create
(new TestDTO(1234)),
ServerReliability\JSInterop.cs (1)
13
return DotNetObjectReference.
Create
(new ImportantInformation());
Microsoft.AspNetCore.Components.Web (3)
Forms\InputFile\InputFileJsCallbacksRelay.cs (1)
20
DotNetReference = 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)
12
Assert.Same(obj, DotNetObjectReference.
Create
(obj).Value);
20
var objRef = DotNetObjectReference.
Create
(new object());
35
var objRef = DotNetObjectReference.
Create
(new object());
49
var objRef = DotNetObjectReference.
Create
("Hello world");
67
var objRef = DotNetObjectReference.
Create
("Hello world");
86
var objRef = DotNetObjectReference.
Create
("Hello world");
Infrastructure\DotNetDispatcherTest.cs (23)
117
var objectRef = DotNetObjectReference.
Create
(arg3);
157
var objectRef = DotNetObjectReference.
Create
(arg3);
180
var objectRef = DotNetObjectReference.
Create
(targetInstance);
197
var objectRef = DotNetObjectReference.
Create
(targetInstance);
214
var objectRef = DotNetObjectReference.
Create
(targetInstance);
233
var objectRef = DotNetObjectReference.
Create
(targetInstance);
252
var objectRef = DotNetObjectReference.
Create
(targetInstance);
453
DotNetObjectReference.
Create
(targetInstance),
454
DotNetObjectReference.
Create
(arg2));
473
DotNetObjectReference.
Create
(targetInstance));
489
DotNetObjectReference.
Create
(targetInstance));
517
DotNetObjectReference.
Create
(targetInstance));
531
DotNetObjectReference.
Create
(targetInstance));
564
var objectRef = DotNetObjectReference.
Create
(new TestDTO { IntVal = 4 });
589
var arg1Ref = DotNetObjectReference.
Create
(targetInstance);
590
var arg2Ref = DotNetObjectReference.
Create
(arg2);
628
var arg1Ref = DotNetObjectReference.
Create
(targetInstance);
629
var arg2Ref = DotNetObjectReference.
Create
(arg2);
657
var arg1Ref = DotNetObjectReference.
Create
(targetInstance);
886
DotNetObjectReference.
Create
(new TestDTO // Return by ref
916
DotNetObjectReference.
Create
(new TestDTO
936
SomeDTORef = DotNetObjectReference.
Create
(new TestDTO // Return by ref
955
SomeDTORef = DotNetObjectReference.
Create
(new TestDTO // Return by ref
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (9)
18
var dotNetObjectRef = DotNetObjectReference.
Create
(new TestModel());
32
var dotNetObjectRef = DotNetObjectReference.
Create
(new TestModel());
46
var dotNetObjectRef = DotNetObjectReference.
Create
(input);
61
var dotNetObjectRef = DotNetObjectReference.
Create
(input);
76
var dotNetObjectRef = DotNetObjectReference.
Create
(input);
96
var ref1 = DotNetObjectReference.
Create
(instance1);
97
var ref2 = DotNetObjectReference.
Create
(instance2);
114
var dotNetObjectRef = DotNetObjectReference.
Create
(input);
134
var dotNetObjectRef = DotNetObjectReference.
Create
(new TestModel());
JSInProcessRuntimeTest.cs (5)
42
DotNetObjectReference.
Create
(obj1),
45
{ "obj2", DotNetObjectReference.
Create
(obj2) },
46
{ "obj3", DotNetObjectReference.
Create
(obj3) },
77
DotNetObjectReference.
Create
(obj1),
79
DotNetObjectReference.
Create
(obj2))!;
JSRuntimeTest.cs (4)
271
var obj1Ref = DotNetObjectReference.
Create
(obj1);
272
var obj1DifferentRef = DotNetObjectReference.
Create
(obj1);
277
{ "obj2", DotNetObjectReference.
Create
(obj2) },
278
{ "obj3", DotNetObjectReference.
Create
(obj3) },