.NET · C# SDK

Preview

NuGet package for .NET / MAUI apps.

Source preview · registry release pending

This SDK's source lives in this repository. A public registry install may not resolve yet. Use REST today, or use a local path / project reference from a checked-out source tree (requires repository access) — see SDK & package availability.

Source preview · registry release pending
Source lives at sdk/ctrlapp_dotnet/. Until the NuGet release ships, add it as a project reference from a checked-out copy of this repository — the NuGet identifier is not yet claimed to resolve publicly.

Project reference (requires a checkout of this repo)

xml· MyApp.csproj
<ProjectReference Include="..\path\to\ctrlapp\sdk\ctrlapp_dotnet\CtrlApp.csproj" />

Initialize on startup

csharp· Program.cs
using CtrlApp;

var ctrl = await Ctrl.InitAsync(new CtrlOptions {
  ApiKey  = "<PUBLISHABLE_KEY>",
  DeviceId = "<DEVICE_ID>",
  BaseUrl  = "https://ctrlapp.krdcode.com",
});
Back to top