{"id":28516024,"url":"https://github.com/keygen-sh/example-csharp-license-activation","last_synced_at":"2025-07-05T17:30:45.786Z","repository":{"id":52919574,"uuid":"367096226","full_name":"keygen-sh/example-csharp-license-activation","owner":"keygen-sh","description":"An example implementation of a node-locked license activation flow using Keygen and C# .NET ","archived":false,"fork":false,"pushed_at":"2023-06-16T16:03:49.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T00:38:30.110Z","etag":null,"topics":["csharp-licensing","dotnet-licensing","floating-licenses","license-activation","license-keys","node-locked","product-keys","serial-keys","software-licensing"],"latest_commit_sha":null,"homepage":"https://keygen.sh","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keygen-sh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-13T15:42:42.000Z","updated_at":"2025-01-24T05:55:28.000Z","dependencies_parsed_at":"2022-08-26T01:41:01.866Z","dependency_job_id":null,"html_url":"https://github.com/keygen-sh/example-csharp-license-activation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keygen-sh/example-csharp-license-activation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-csharp-license-activation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-csharp-license-activation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-csharp-license-activation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-csharp-license-activation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keygen-sh","download_url":"https://codeload.github.com/keygen-sh/example-csharp-license-activation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-csharp-license-activation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263778275,"owners_count":23509966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp-licensing","dotnet-licensing","floating-licenses","license-activation","license-keys","node-locked","product-keys","serial-keys","software-licensing"],"created_at":"2025-06-09T03:31:46.853Z","updated_at":"2025-07-05T17:30:45.779Z","avatar_url":"https://github.com/keygen-sh.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example C# Machine Activation\n\nThis is an example of a typical machine activation flow written in C# and .NET.\nYou may of course choose to implement a different flow if required - this\nonly serves as an example implementation.\n\n## Running the example\n\nFirst, install dependencies with [`dotnet`](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet):\n\n```\ndotnet restore\n```\n\nThen run the program:\n\n```\ndotnet run\n```\n\nYou should see log output indicating the current device was activated:\n\n```\n[INFO] [ValidateLicense] Invalid=fingerprint scope does not match any associated machines ValidationCode=FINGERPRINT_SCOPE_MISMATCH\n[INFO] [ActivateDevice] DeviceId=ae09c0a5-8c59-4c11-b745-5ac994d9fcc6 LicenseId=c460da8d-1b5a-44f7-8a74-9eec429876ec\n[INFO] [ValidateLicense] Valid=is valid ValidationCode=VALID\n[INFO] [Main] Valid=True RecentlyActivated=True\n```\n\nSubsequent runs will indicate the device is already activated:\n\n```\n[INFO] [ValidateLicense] Valid=is valid ValidationCode=VALID\n[INFO] [Main] Valid=True RecentlyActivated=False\n```\n\n## Questions?\n\nReach out at [support@keygen.sh](mailto:support@keygen.sh) if you have any\nquestions or concerns!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeygen-sh%2Fexample-csharp-license-activation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeygen-sh%2Fexample-csharp-license-activation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeygen-sh%2Fexample-csharp-license-activation/lists"}