2020-12-09 22:44:11 +03:00
|
|
|
|
using System.Net;
|
|
|
|
|
using Microsoft.Azure.Functions.Worker;
|
2020-11-25 04:58:07 +03:00
|
|
|
|
using Microsoft.Azure.WebJobs;
|
|
|
|
|
using Microsoft.Azure.WebJobs.Extensions.Http;
|
|
|
|
|
|
|
|
|
|
namespace FunctionApp
|
|
|
|
|
{
|
|
|
|
|
public static class Function3
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[FunctionName("Function3")]
|
|
|
|
|
public static HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequestData req,
|
|
|
|
|
[Queue("functionstesting2", Connection = "AzureWebJobsStorage")] OutputBinding<string> name)
|
|
|
|
|
{
|
2020-12-09 22:44:11 +03:00
|
|
|
|
var response = new HttpResponseData(HttpStatusCode.OK);
|
2020-11-25 04:58:07 +03:00
|
|
|
|
response.Body = "Success!!";
|
|
|
|
|
|
|
|
|
|
name.SetValue("some name");
|
|
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|