Skip to content

Commit 2916f4b

Browse files
Fixed server interop reliability tests (#25244)
1 parent e2dd296 commit 2916f4b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Components/Ignitor/src/BlazorClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public async Task<bool> ConnectAsync(Uri uri, bool connectAutomatically = true,
353353
_hubConnection = builder.Build();
354354

355355
HubConnection.On<int, string>("JS.AttachComponent", OnAttachComponent);
356-
HubConnection.On<int, string, string>("JS.BeginInvokeJS", OnBeginInvokeJS);
356+
HubConnection.On<int, string, string, int, long>("JS.BeginInvokeJS", OnBeginInvokeJS);
357357
HubConnection.On<string>("JS.EndInvokeDotNet", OnEndInvokeDotNet);
358358
HubConnection.On<int, byte[]>("JS.RenderBatch", OnRenderBatch);
359359
HubConnection.On<string>("JS.Error", OnError);
@@ -401,9 +401,9 @@ private void OnAttachComponent(int componentId, string domSelector)
401401
NextAttachComponentReceived?.Completion?.TrySetResult(call);
402402
}
403403

404-
private void OnBeginInvokeJS(int asyncHandle, string identifier, string argsJson)
404+
private void OnBeginInvokeJS(int asyncHandle, string identifier, string argsJson, int resultType, long targetInstanceId)
405405
{
406-
var call = new CapturedJSInteropCall(asyncHandle, identifier, argsJson);
406+
var call = new CapturedJSInteropCall(asyncHandle, identifier, argsJson, resultType, targetInstanceId);
407407
Operations?.JSInteropCalls.Enqueue(call);
408408
JSInterop?.Invoke(call);
409409

src/Components/Ignitor/src/CapturedJSInteropCall.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ namespace Ignitor
55
{
66
public class CapturedJSInteropCall
77
{
8-
public CapturedJSInteropCall(int asyncHandle, string identifier, string argsJson)
8+
public CapturedJSInteropCall(int asyncHandle, string identifier, string argsJson, int resultType, long targetInstanceId)
99
{
1010
AsyncHandle = asyncHandle;
1111
Identifier = identifier;
1212
ArgsJson = argsJson;
13+
ResultType = resultType;
14+
TargetInstanceId = targetInstanceId;
1315
}
1416

1517
public int AsyncHandle { get; }
1618
public string Identifier { get; }
1719
public string ArgsJson { get; }
20+
public int ResultType { get; }
21+
public long TargetInstanceId { get; }
1822
}
1923
}

0 commit comments

Comments
 (0)