Skip to content

Instantly share code, notes, and snippets.

@atomicscope
Created September 4, 2018 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomicscope/09fdbca6c64aa03eeff104934c313c09 to your computer and use it in GitHub Desktop.
Save atomicscope/09fdbca6c64aa03eeff104934c313c09 to your computer and use it in GitHub Desktop.
log.Info("Adding Headers for Update Activity");
client.DefaultRequestHeaders.Add("AS-MainActivityId", mainActivityId);
client.DefaultRequestHeaders.Add("AS-StageActivityId", stageActivityId);
client.DefaultRequestHeaders.Add("AS-Status", "Success");
client.DefaultRequestHeaders.Remove("AS-ArchiveMessage");
log.Info("Successfully Added Headers");
var updateActivityUri = new Uri(req.RequestUri.AbsoluteUri.Replace(req.RequestUri.PathAndQuery, "/api/UpdateActivity"));
log.Info("Calling update Activity");
var updateActivityResponse = await client.PostAsync(updateActivityUri, new StringContent(activityContent.MessageBody));
log.Info("Response from Update Activity :" + updateActivityResponse);
log.Info("Update Activity Completed");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment