C##
This page covers using the kRPC C# client with the KSA service. The
kRPC C# client guide covers the client in full.
Note
kRPC for KSA is experimental, and the client package does not yet include the KSA
service stubs. You add them from the release archive, as below, until a later release makes
this easier.
Installing#
Add the KRPC.Client 0.7.0 NuGet
package to the project, and csharp/KSA.cs from the stubs folder of the release
archive.
The kRPC C# client guide covers other ways to install the client.
Connecting to the Server#
The service is connection.KSA ():
using KRPC.Client;
using KRPC.Client.Services.KSA;
var connection = new Connection ("Example");
var vehicle = connection.KSA ().ActiveVehicle;
Console.WriteLine (vehicle.Name);
The kRPC C# client guide covers connecting, streams, events and the client’s other features.