Blazor Webassembly - Invoke ServerMethodsController

Hi,

I uncommented the Sum Example in the ServerMethodsController of my Application.

How can I fire that event on the client?
It is not listed in the invoke method?

Thanks.

Invoke will look for methods declared in the page - you can use the partial class to add additional method that will call the server:

Thanks for the link. I searched in the invoke methods chapter in the documentation.

How is it possible to use the servermethod with a parameter.
I would like to send a string to the server -> make a query and send something back.

Thanks.

I found the solution in the following thread: