15 references to OutgoingMessageType
Microsoft.AspNetCore.Components.WebView (12)
IpcCommon.cs (2)
13
public static string Serialize(
OutgoingMessageType
messageType, params object[] args)
22
public static bool TryDeserializeOutgoing(string message, out
OutgoingMessageType
messageType, out ArraySegment<JsonElement> args)
IpcSender.cs (10)
32
var message = IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.RenderBatch, batchId, Convert.ToBase64String(arrayBuilder.Buffer, 0, arrayBuilder.Count));
39
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.Navigate, uri, options));
44
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.Refresh, forceReload));
49
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.AttachToDocument, componentId, selector));
54
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.BeginInvokeJS, taskId, identifier, argsJson, resultType, targetInstanceId));
59
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.EndInvokeDotNet, callId, success, invocationResultOrError));
64
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.SendByteArrayToJS, id, data));
69
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.SetHasLocationChangingListeners, hasListeners));
74
DispatchMessageWithErrorHandling(IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.EndLocationChanging, callId, shouldContinueNavigation));
80
var message = IpcCommon.Serialize(IpcCommon.
OutgoingMessageType
.NotifyUnhandledException, exception.Message, exception.StackTrace);
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\AssertHelpers.cs (3)
12
Assert.True(IpcCommon.TryDeserializeOutgoing(message, out
var
messageType, out var args));
20
Assert.True(IpcCommon.TryDeserializeOutgoing(message, out
var
messageType, out var args));
29
Assert.True(IpcCommon.TryDeserializeOutgoing(message, out
var
messageType, out var args));