33
44namespace Microsoft . JSInterop
55{
6- public static partial class DotNetDispatcher
6+ public static partial class DotNetObjectReference
77 {
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 ; }
8+ public static Microsoft . JSInterop . DotNetObjectReference < TValue > Create < TValue > ( TValue value ) where TValue : class { throw null ; }
119 }
12- public static partial class DotNetObjectRef
10+ public sealed partial class DotNetObjectReference < TValue > : System . IDisposable where TValue : class
1311 {
14- public static Microsoft . JSInterop . DotNetObjectRef < TValue > Create < TValue > ( TValue value ) where TValue : class { throw null ; }
15- }
16- public sealed partial class DotNetObjectRef < TValue > : System . IDisposable where TValue : class
17- {
18- internal DotNetObjectRef ( ) { }
12+ internal DotNetObjectReference ( ) { }
1913 public TValue Value { get { throw null ; } }
2014 public void Dispose ( ) { }
2115 }
@@ -25,38 +19,61 @@ public partial interface IJSInProcessRuntime : Microsoft.JSInterop.IJSRuntime
2519 }
2620 public partial interface IJSRuntime
2721 {
28- System . Threading . Tasks . Task < TValue > InvokeAsync < TValue > ( string identifier , System . Collections . Generic . IEnumerable < object > args , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) ;
29- 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 ) ;
3024 }
3125 public partial class JSException : System . Exception
3226 {
3327 public JSException ( string message ) { }
3428 public JSException ( string message , System . Exception innerException ) { }
3529 }
36- 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
3731 {
38- protected JSInProcessRuntimeBase ( ) { }
32+ protected JSInProcessRuntime ( ) { }
3933 protected abstract string InvokeJS ( string identifier , string argsJson ) ;
4034 public TValue Invoke < TValue > ( string identifier , params object [ ] args ) { throw null ; }
4135 }
36+ public static partial class JSInProcessRuntimeExtensions
37+ {
38+ public static void InvokeVoid ( this Microsoft . JSInterop . IJSInProcessRuntime jsRuntime , string identifier , params object [ ] args ) { }
39+ }
4240 [ System . AttributeUsageAttribute ( System . AttributeTargets . Method , AllowMultiple = true ) ]
43- public partial class JSInvokableAttribute : System . Attribute
41+ public sealed partial class JSInvokableAttribute : System . Attribute
4442 {
4543 public JSInvokableAttribute ( ) { }
4644 public JSInvokableAttribute ( string identifier ) { }
4745 public string Identifier { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
4846 }
49- public static partial class JSRuntime
50- {
51- public static void SetCurrentJSRuntime ( Microsoft . JSInterop . IJSRuntime instance ) { }
52- }
53- public abstract partial class JSRuntimeBase : Microsoft . JSInterop . IJSRuntime
47+ public abstract partial class JSRuntime : Microsoft . JSInterop . IJSRuntime
5448 {
55- protected JSRuntimeBase ( ) { }
49+ protected JSRuntime ( ) { }
5650 protected System . TimeSpan ? DefaultAsyncTimeout { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] set { } }
5751 protected abstract void BeginInvokeJS ( long taskId , string identifier , string argsJson ) ;
5852 protected internal abstract void EndInvokeDotNet ( string callId , bool success , object resultOrError , string assemblyName , string methodIdentifier , long dotNetObjectId ) ;
59- 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 ; }
60- public System . Threading . Tasks . Task < T > InvokeAsync < T > ( string identifier , params object [ ] args ) { throw null ; }
53+ public System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( string identifier , object [ ] args ) { throw null ; }
54+ public System . Threading . Tasks . ValueTask < TValue > InvokeAsync < TValue > ( string identifier , System . Threading . CancellationToken cancellationToken , object [ ] args ) { throw null ; }
55+ public static void SetCurrentJSRuntime ( Microsoft . JSInterop . IJSRuntime instance ) { }
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 ( string callId , string assemblyName , string methodIdentifier , long dotNetObjectId , string argsJson ) { }
76+ public static void EndInvokeJS ( string arguments ) { }
77+ public static string Invoke ( string assemblyName , string methodIdentifier , long dotNetObjectId , string argsJson ) { throw null ; }
6178 }
6279}
0 commit comments