internal static Task Send(MethodProxy methodProxy) { string csharpProxy = BridgeSerializer.Serialize(methodProxy); BlazorMobileComponent.GetJSRuntime().InvokeAsync <bool>("contextBridgeSend", csharpProxy); return(Task.CompletedTask); }
public static async Task Send(MethodProxy methodProxy) { string csharpProxy = BridgeSerializer.Serialize(methodProxy); InternalHelper.SetTimeout(async() => { await JSRuntime.Current.InvokeAsync <bool>("contextBridgeSend", csharpProxy); }, 100); }
public static string GetJSONReturnValue(MethodProxy methodResult) { ClearRequestValues(methodResult); return(BridgeSerializer.Serialize(methodResult)); }
public TypeProxy(Type type) { SerializedData = BridgeSerializer.Serialize(type); }
private static void MessageForwarder(MessageProxy messageProxy) { BlazorContextBridge.Current.SendMessageToClient( BridgeSerializer.Serialize(messageProxy)); }
public static void Send(MethodProxy methodProxy) { string csharpProxy = BridgeSerializer.Serialize(methodProxy); RegisteredFunction.Invoke <string>("contextBridgeSend", csharpProxy); }