Skip to content

Commit bfceda2

Browse files
committed
Update example for deactivating
1 parent 4897ecd commit bfceda2

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

examples/DeactivateCommand.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ public class DeactivateCommand
1616
{
1717
/**
1818
* <summary>Runs the MaxCut executable to deactivate the license.</summary>
19-
*
20-
* <param name="licenseCode">The license code to be deactivated.</param>
2119
*/
22-
public void Run(string licenseCode)
20+
public void Run()
2321
{
2422
var startInfo = new ProcessStartInfo
2523
{
2624
FileName = @"C:\Program Files (x86)\MaxCut Software\MaxCut\MaxCut.exe",
27-
Arguments = $"license --deactivate \"{licenseCode}\"",
25+
Arguments = $"license --deactivate",
2826
RedirectStandardOutput = true,
2927
UseShellExecute = false,
3028
CreateNoWindow = true

examples/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020

2121
// Example of activating a license code via the MaxCut command line interface.
2222
var deactivateCommand = new DeactivateCommand();
23-
deactivateCommand.Run("my-license-code");
23+
deactivateCommand.Run();

0 commit comments

Comments
 (0)