We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4cc90a commit 34b1196Copy full SHA for 34b1196
NetLicensingClient-demo/NetLicensingClient-demo.cs
@@ -276,8 +276,12 @@ static void Main(string[] args)
276
{
277
// Cleanup:
278
context.securityMode = SecutiryMode.BASIC_AUTHENTICATION;
279
- // deactivate api key
280
- TokenService.deactivate(context, context.apiKey);
+
+ // deactivate api key in case APIKey was used (exists)
281
+ if (!String.IsNullOrEmpty(context.apiKey))
282
+ {
283
+ TokenService.deactivate(context, context.apiKey);
284
+ }
285
// delete test product with all its related items
286
ProductService.delete(context, demoProductNumber, true);
287
}
0 commit comments