Created
February 2, 2018 00:48
-
-
Save yuka1984/444530a606f910dd61334f6691424c78 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
[FunctionName(nameof(HookApiRequestActivity))] | |
public static async Task<string> HookApiRequestActivity( | |
[ActivityTrigger] int requestValue | |
) | |
{ | |
var url = $"{ConfigurationManager.AppSettings["HookUrl"]}?Value={requestValue}"; | |
ServicePointManager.DefaultConnectionLimit = 100; | |
using (var client = new HttpClient()) | |
{ | |
var result = await client.GetStringAsync(url); | |
return result.Replace("\"", ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment