You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Invokes the specified .NET public method asynchronously.
@@ -271,29 +271,29 @@ export function invokeMethod<T>(assemblyName: string, methodIdentifier: string,
271
271
}
272
272
273
273
interfacePendingAsyncCall<T>{
274
-
resolve: (value?: T|PromiseLike<T>)=>void;
275
-
reject: (reason?: any)=>void;
274
+
resolve: (value?: T|PromiseLike<T>)=>void;
275
+
reject: (reason?: any)=>void;
276
276
}
277
277
278
278
/**
279
279
* Represents the type of result expected from a JS interop call.
280
280
*/
281
281
// eslint-disable-next-line no-shadow
282
282
exportenumJSCallResultType{
283
-
Default=0,
284
-
JSObjectReference=1,
285
-
JSStreamReference=2,
286
-
JSVoidResult=3,
283
+
Default=0,
284
+
JSObjectReference=1,
285
+
JSStreamReference=2,
286
+
JSVoidResult=3,
287
287
}
288
288
289
289
/**
290
290
* Represents the type of operation that should be performed in JS.
291
291
*/
292
292
exportenumJSCallType{
293
-
FunctionCall=1,
294
-
NewCall=2,
295
-
GetValue=3,
296
-
SetValue=4
293
+
FunctionCall=1,
294
+
NewCall=2,
295
+
GetValue=3,
296
+
SetValue=4
297
297
}
298
298
299
299
/**
@@ -317,106 +317,106 @@ export function invokeMethod<T>(assemblyName: string, methodIdentifier: string,
317
317
* Represents the ability to dispatch calls from JavaScript to a .NET runtime.
318
318
*/
319
319
exportinterfaceDotNetCallDispatcher{
320
-
/**
321
-
* Optional. If implemented, invoked by the runtime to perform a synchronous call to a .NET method.
322
-
*
323
-
* @param assemblyName The short name (without key/version or .dll extension) of the .NET assembly holding the method to invoke. The value may be null when invoking instance methods.
324
-
* @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier.
325
-
* @param dotNetObjectId If given, the call will be to an instance method on the specified DotNetObject. Pass null or undefined to call static methods.
326
-
* @param argsJson JSON representation of arguments to pass to the method.
327
-
* @returns JSON representation of the result of the invocation.
* Invoked by the runtime to begin an asynchronous call to a .NET method.
333
-
*
334
-
* @param callId A value identifying the asynchronous operation. This value should be passed back in a later call from .NET to JS.
335
-
* @param assemblyName The short name (without key/version or .dll extension) of the .NET assembly holding the method to invoke. The value may be null when invoking instance methods.
336
-
* @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier.
337
-
* @param dotNetObjectId If given, the call will be to an instance method on the specified DotNetObject. Pass null to call static methods.
338
-
* @param argsJson JSON representation of arguments to pass to the method.
* Invoked by the runtime to transfer a byte array from JS to .NET.
353
-
* @param id The identifier for the byte array used during revival.
354
-
* @param data The byte array being transferred for eventual revival.
355
-
*/
356
-
sendByteArray(id: number,data: Uint8Array): void;
320
+
/**
321
+
* Optional. If implemented, invoked by the runtime to perform a synchronous call to a .NET method.
322
+
*
323
+
* @param assemblyName The short name (without key/version or .dll extension) of the .NET assembly holding the method to invoke. The value may be null when invoking instance methods.
324
+
* @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier.
325
+
* @param dotNetObjectId If given, the call will be to an instance method on the specified DotNetObject. Pass null or undefined to call static methods.
326
+
* @param argsJson JSON representation of arguments to pass to the method.
327
+
* @returns JSON representation of the result of the invocation.
* Invoked by the runtime to begin an asynchronous call to a .NET method.
333
+
*
334
+
* @param callId A value identifying the asynchronous operation. This value should be passed back in a later call from .NET to JS.
335
+
* @param assemblyName The short name (without key/version or .dll extension) of the .NET assembly holding the method to invoke. The value may be null when invoking instance methods.
336
+
* @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier.
337
+
* @param dotNetObjectId If given, the call will be to an instance method on the specified DotNetObject. Pass null to call static methods.
338
+
* @param argsJson JSON representation of arguments to pass to the method.
0 commit comments