.NET v1.5.2
C# and VB.NET
.NET Framework 4.6.2+ or .NET 6+ (netstandard2.0 and net8.0). WinForms, WPF, console and services
dotnet add package PWFAuthusing PWFAuth;
var client = new PwfClient(AppSecret);
client.SessionEnded += (s, e) => Application.Exit(); // banned, paused, expired: close the app
PwfResponse login = await client.LoginAsync(licenseKey);
if (!login.Success) { ShowError(login.Message); return; }
client.StartHeartbeat(); // checks in every 30 seconds