33
44namespace Microsoft . JSInterop
55{
6- public static partial class DotNetDispatcher
7- {
8- public static void BeginInvoke ( string callId , string assemblyName , string methodIdentifier , long dotNetObjectId , string argsJson ) { }
9- public static void EndInvoke ( string arguments ) { }
10- public static string Invoke ( string assemblyName , string methodIdentifier , long dotNetObjectId , string argsJson ) { throw null ; }
11- [ Microsoft . JSInterop . JSInvokableAttribute ( "DotNetDispatcher.ReleaseDotNetObject" ) ]
12- public static void ReleaseDotNetObject ( long dotNetObjectId ) { }
13- }
14- public static partial class DotNetObjectRef
6+ public static partial class DotNetObjectReference
157 {
16- public static Microsoft . JSInterop . DotNetObjectRef < TValue > Create < TValue > ( TValue value ) where TValue : class { throw null ; }
8+ public static Microsoft . JSInterop . DotNetObjectReference < TValue > Create < TValue > ( TValue value ) where TValue : class { throw null ; }
179 }
18- public sealed partial class DotNetObjectRef < TValue > : System . IDisposable where TValue : class
10+ public sealed partial class DotNetObjectReference < TValue > : System . IDisposable where TValue : class
1911 {
20- internal DotNetObjectRef ( ) { }
21- public TValue Value { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
12+ internal DotNetObjectReference ( ) { }
13+ public TValue Value { get { throw null ; } }
2214 public void Dispose ( ) { }
2315 }
2416 public partial interface IJSInProcessRuntime : Microsoft . JSInterop . IJSRuntime
@@ -27,38 +19,84 @@ public partial interface IJSInProcessRuntime : Microsoft.JSInterop.IJSRuntime
2719 }
2820 public partial interface IJSRuntime
2921 {
30- System . Threading . Tasks . Task < TValue > InvokeAsync < TValue > ( string identifier , System . Collections . Generic . IEnumerable < object > args , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) ;
31- System . Threading . Tasks . Task < TValue > InvokeAsync < TValue > ( string identifier , params object [ ] args ) ;
22+ System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( string identifier , object [ ] args ) ;
23+ System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( string identifier , System . Threading . CancellationToken cancellationToken , object [ ] args ) ;
3224 }
3325 public partial class JSException : System . Exception
3426 {
3527 public JSException ( string message ) { }
3628 public JSException ( string message , System . Exception innerException ) { }
3729 }
38- public abstract partial class JSInProcessRuntimeBase : Microsoft . JSInterop . JSRuntimeBase , Microsoft . JSInterop . IJSInProcessRuntime , Microsoft . JSInterop . IJSRuntime
30+ public abstract partial class JSInProcessRuntime : Microsoft . JSInterop . JSRuntime , Microsoft . JSInterop . IJSInProcessRuntime , Microsoft . JSInterop . IJSRuntime
3931 {
40- protected JSInProcessRuntimeBase ( ) { }
32+ protected JSInProcessRuntime ( ) { }
4133 protected abstract string InvokeJS ( string identifier , string argsJson ) ;
4234 public TValue Invoke < TValue > ( string identifier , params object [ ] args ) { throw null ; }
4335 }
36+ public static partial class JSInProcessRuntimeExtensions
37+ {
38+ public static void InvokeVoid ( this Microsoft . JSInterop . IJSInProcessRuntime jsRuntime , string identifier , params object [ ] args ) { }
39+ }
4440 [ System . AttributeUsageAttribute ( System . AttributeTargets . Method , AllowMultiple = true ) ]
45- public partial class JSInvokableAttribute : System . Attribute
41+ public sealed partial class JSInvokableAttribute : System . Attribute
4642 {
4743 public JSInvokableAttribute ( ) { }
4844 public JSInvokableAttribute ( string identifier ) { }
4945 public string Identifier { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
5046 }
51- public static partial class JSRuntime
47+ public abstract partial class JSRuntime : Microsoft . JSInterop . IJSRuntime
5248 {
53- public static void SetCurrentJSRuntime ( Microsoft . JSInterop . IJSRuntime instance ) { }
54- }
55- public abstract partial class JSRuntimeBase : Microsoft . JSInterop . IJSRuntime
56- {
57- protected JSRuntimeBase ( ) { }
49+ protected JSRuntime ( ) { }
5850 protected System . TimeSpan ? DefaultAsyncTimeout { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] set { } }
51+ protected internal System . Text . Json . JsonSerializerOptions JsonSerializerOptions { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
5952 protected abstract void BeginInvokeJS ( long taskId , string identifier , string argsJson ) ;
60- protected internal abstract void EndInvokeDotNet ( string callId , bool success , object resultOrError , string assemblyName , string methodIdentifier , long dotNetObjectId ) ;
61- public System . Threading . Tasks . Task < T > InvokeAsync < T > ( string identifier , System . Collections . Generic . IEnumerable < object > args , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
62- public System . Threading . Tasks . Task < T > InvokeAsync < T > ( string identifier , params object [ ] args ) { throw null ; }
53+ protected internal abstract void EndInvokeDotNet ( Microsoft . JSInterop . Infrastructure . DotNetInvocationInfo invocationInfo , in Microsoft . JSInterop . Infrastructure . DotNetInvocationResult invocationResult ) ;
54+ public System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( string identifier , object [ ] args ) { throw null ; }
55+ public System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( string identifier , System . Threading . CancellationToken cancellationToken , object [ ] args ) { throw null ; }
56+ }
57+ public static partial class JSRuntimeExtensions
58+ {
59+ public static System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( this Microsoft . JSInterop . IJSRuntime jsRuntime , string identifier , params object [ ] args ) { throw null ; }
60+ public static System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( this Microsoft . JSInterop . IJSRuntime jsRuntime , string identifier , System . Threading . CancellationToken cancellationToken , params object [ ] args ) { throw null ; }
61+ [ System . Diagnostics . DebuggerStepThroughAttribute ]
62+ public static System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( this Microsoft . JSInterop . IJSRuntime jsRuntime , string identifier , System . TimeSpan timeout , params object [ ] args ) { throw null ; }
63+ [ System . Diagnostics . DebuggerStepThroughAttribute ]
64+ public static System . Threading . Tasks . ValueTask InvokeVoidAsync ( this Microsoft . JSInterop . IJSRuntime jsRuntime , string identifier , params object [ ] args ) { throw null ; }
65+ [ System . Diagnostics . DebuggerStepThroughAttribute ]
66+ public static System . Threading . Tasks . ValueTask InvokeVoidAsync ( this Microsoft . JSInterop . IJSRuntime jsRuntime , string identifier , System . Threading . CancellationToken cancellationToken , params object [ ] args ) { throw null ; }
67+ [ System . Diagnostics . DebuggerStepThroughAttribute ]
68+ public static System . Threading . Tasks . ValueTask InvokeVoidAsync ( this Microsoft . JSInterop . IJSRuntime jsRuntime , string identifier , System . TimeSpan timeout , params object [ ] args ) { throw null ; }
69+ }
70+ }
71+ namespace Microsoft . JSInterop . Infrastructure
72+ {
73+ public static partial class DotNetDispatcher
74+ {
75+ public static void BeginInvokeDotNet ( Microsoft . JSInterop . JSRuntime jsRuntime , Microsoft . JSInterop . Infrastructure . DotNetInvocationInfo invocationInfo , string argsJson ) { }
76+ public static void EndInvokeJS ( Microsoft . JSInterop . JSRuntime jsRuntime , string arguments ) { }
77+ public static string Invoke ( Microsoft . JSInterop . JSRuntime jsRuntime , in Microsoft . JSInterop . Infrastructure . DotNetInvocationInfo invocationInfo , string argsJson ) { throw null ; }
78+ }
79+ [ System . Runtime . InteropServices . StructLayoutAttribute ( System . Runtime . InteropServices . LayoutKind . Sequential ) ]
80+ public readonly partial struct DotNetInvocationInfo
81+ {
82+ private readonly object _dummy ;
83+ private readonly int _dummyPrimitive ;
84+ public DotNetInvocationInfo ( string assemblyName , string methodIdentifier , long dotNetObjectId , string callId ) { throw null ; }
85+ public string AssemblyName { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
86+ public string CallId { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
87+ public long DotNetObjectId { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
88+ public string MethodIdentifier { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
89+ }
90+ [ System . Runtime . InteropServices . StructLayoutAttribute ( System . Runtime . InteropServices . LayoutKind . Sequential ) ]
91+ public readonly partial struct DotNetInvocationResult
92+ {
93+ private readonly object _dummy ;
94+ private readonly int _dummyPrimitive ;
95+ public DotNetInvocationResult ( System . Exception exception , string errorKind ) { throw null ; }
96+ public DotNetInvocationResult ( object result ) { throw null ; }
97+ public string ErrorKind { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
98+ public System . Exception Exception { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
99+ public object Result { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
100+ public bool Success { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
63101 }
64102}
0 commit comments