Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

Commit

Permalink
Try to continue license obtainment by skipping survey
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que committed Jul 17, 2018
1 parent dc24dc9 commit b07916d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions UnityAutomaticLicensor/UnityLicensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ public async Task Run()
pollRequest.AddHeader("Content-Type", "text/xml");
pollRequest.AddParameter("text/xml", licenseKeyCheck.PostedLicenseAttemptXml, ParameterType.RequestBody);
response = await licenseClient.ExecuteTaskAsync(pollRequest);
// TODO: Read XML properly...
var pollResponse = response.Content.Contains(">true<");
if (!pollResponse)
{
// TODO: Find a way to automatically submit the survey.
throw new InvalidOperationException("The account must have completed the Unity survey previously in order to be used for licensing!");
}
// Pretty sure the XML response isn't used any more.

Console.WriteLine("Sending license request to licensing server...");
var licenseRequest = new RestRequest("api/transactions/{txId}", Method.PUT);
Expand Down

0 comments on commit b07916d

Please sign in to comment.