Created
September 4, 2018 12:21
-
-
Save atomicscope/09fdbca6c64aa03eeff104934c313c09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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