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

            BlazorMobileComponent.GetJSRuntime().InvokeAsync <bool>("contextBridgeSend", csharpProxy);
            return(Task.CompletedTask);
        }
Example #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);
        }
Example #3
0
 public static string GetJSONReturnValue(MethodProxy methodResult)
 {
     ClearRequestValues(methodResult);
     return(BridgeSerializer.Serialize(methodResult));
 }
Example #4
0
 public TypeProxy(Type type)
 {
     SerializedData = BridgeSerializer.Serialize(type);
 }
Example #5
0
 private static void MessageForwarder(MessageProxy messageProxy)
 {
     BlazorContextBridge.Current.SendMessageToClient(
         BridgeSerializer.Serialize(messageProxy));
 }
Example #6
0
        public static void Send(MethodProxy methodProxy)
        {
            string csharpProxy = BridgeSerializer.Serialize(methodProxy);

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