Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created February 2, 2018 00:48
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 yuka1984/444530a606f910dd61334f6691424c78 to your computer and use it in GitHub Desktop.
Save yuka1984/444530a606f910dd61334f6691424c78 to your computer and use it in GitHub Desktop.
[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