Setup project - Xenoage/RpcLib GitHub Wiki

  1. You need at least two projects: the server and the client. In our SimpleDemo example, these projects are named DemoServer and DemoClient.
    • The server project must be an ASP.NET Core project, since the RPC handler on the server side is based on an ASP.NET Core Web API controller.
    • The client project can be of any kind, e.g. a simple console application.
  2. An additional class library project is recommended, which is referenced by both the client and the server. This project is called DemoShared in the example code.
  3. Add a reference to this library to your projects, e.g. by using the NuGet GUI or by calling dotnet add package Xenoage.RpcLib

Proceed with defining the RPC methods.