Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Components/Ignitor/src/BlazorClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public async Task<bool> ConnectAsync(Uri uri, bool connectAutomatically = true,
_hubConnection = builder.Build();

HubConnection.On<int, string>("JS.AttachComponent", OnAttachComponent);
HubConnection.On<int, string, string>("JS.BeginInvokeJS", OnBeginInvokeJS);
HubConnection.On<int, string, string, int, long>("JS.BeginInvokeJS", OnBeginInvokeJS);
HubConnection.On<string>("JS.EndInvokeDotNet", OnEndInvokeDotNet);
HubConnection.On<int, byte[]>("JS.RenderBatch", OnRenderBatch);
HubConnection.On<string>("JS.Error", OnError);
Expand Down Expand Up @@ -401,9 +401,9 @@ private void OnAttachComponent(int componentId, string domSelector)
NextAttachComponentReceived?.Completion?.TrySetResult(call);
}

private void OnBeginInvokeJS(int asyncHandle, string identifier, string argsJson)
private void OnBeginInvokeJS(int asyncHandle, string identifier, string argsJson, int resultType, long targetInstanceId)
{
var call = new CapturedJSInteropCall(asyncHandle, identifier, argsJson);
var call = new CapturedJSInteropCall(asyncHandle, identifier, argsJson, resultType, targetInstanceId);
Operations?.JSInteropCalls.Enqueue(call);
JSInterop?.Invoke(call);

Expand Down
6 changes: 5 additions & 1 deletion src/Components/Ignitor/src/CapturedJSInteropCall.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ namespace Ignitor
{
public class CapturedJSInteropCall
{
public CapturedJSInteropCall(int asyncHandle, string identifier, string argsJson)
public CapturedJSInteropCall(int asyncHandle, string identifier, string argsJson, int resultType, long targetInstanceId)
{
AsyncHandle = asyncHandle;
Identifier = identifier;
ArgsJson = argsJson;
ResultType = resultType;
TargetInstanceId = targetInstanceId;
}

public int AsyncHandle { get; }
public string Identifier { get; }
public string ArgsJson { get; }
public int ResultType { get; }
public long TargetInstanceId { get; }
}
}