Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

100
Visualizações
blazor invokeMethodAsync.apply won't work

I'm trying to wrap the blazor call to invokeMethodAsync, usually I'm calling it like this and it works:

dobjref.invokeMethodAsync("Method1", p1, p2);

I wanted to wrap this call like this:

function invokeMethod() {        
    var ags = arguments;
    var dobjref = arguments[0];        
    var args = [];
    for (var i = 1; i < arguments.length; i++) {
        args.push(arguments[i]);
    }
    
    return dobjref.invokeMethodAsync.apply(dobjref, args);
}

and calling it like this:

invokeMethod(dobjref, "Method1", p1, p2)

but when this runs I'm getting

JsonException: The JSON value could not be converted to System.Int32

at the server

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda