internal static Task Send(MethodProxy methodProxy)
        {
            string csharpProxy = BridgeSerializer.Serialize(methodProxy);

            BlazorMobileComponent.GetJSRuntime().InvokeAsync <bool>("contextBridgeSend", csharpProxy);
            return(Task.CompletedTask);
        }
Beispiel #2
0
        public static async Task Send(MethodProxy methodProxy)
        {
            string csharpProxy = BridgeSerializer.Serialize(methodProxy);

            InternalHelper.SetTimeout(async() =>
            {
                await JSRuntime.Current.InvokeAsync <bool>("contextBridgeSend", csharpProxy);
            }, 100);
        }
Beispiel #3
0
 public static string GetJSONReturnValue(MethodProxy methodResult)
 {
     ClearRequestValues(methodResult);
     return(BridgeSerializer.Serialize(methodResult));
 }
Beispiel #4
0
 public TypeProxy(Type type)
 {
     SerializedData = BridgeSerializer.Serialize(type);
 }
 private static void MessageForwarder(MessageProxy messageProxy)
 {
     BlazorContextBridge.Current.SendMessageToClient(
         BridgeSerializer.Serialize(messageProxy));
 }
Beispiel #6
0
        public static void Send(MethodProxy methodProxy)
        {
            string csharpProxy = BridgeSerializer.Serialize(methodProxy);

            RegisteredFunction.Invoke <string>("contextBridgeSend", csharpProxy);
        }