Fejl under deploy
This commit is contained in:
parent
03ebceb38c
commit
0983ddb7ca
7 changed files with 1 additions and 31 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -14,7 +14,7 @@ namespace TaskRegApp
|
||||||
_logger = loggerFactory.CreateLogger<CreateInvoice>();
|
_logger = loggerFactory.CreateLogger<CreateInvoice>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Function("CreateInvoice")]
|
[Function("CreateInvoiceFunction")]
|
||||||
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req)
|
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req)
|
||||||
{
|
{
|
||||||
_logger.LogInformation("C# HTTP trigger function processed a request.");
|
_logger.LogInformation("C# HTTP trigger function processed a request.");
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
using System.Net;
|
|
||||||
using Microsoft.Azure.Functions.Worker;
|
|
||||||
using Microsoft.Azure.Functions.Worker.Http;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
|
|
||||||
namespace TaskRegApp
|
|
||||||
{
|
|
||||||
public class CreateInvoice
|
|
||||||
{
|
|
||||||
private readonly ILogger _logger;
|
|
||||||
|
|
||||||
public CreateInvoice(ILoggerFactory loggerFactory)
|
|
||||||
{
|
|
||||||
_logger = loggerFactory.CreateLogger<CreateInvoice>();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Function("CreateInvoice")]
|
|
||||||
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req)
|
|
||||||
{
|
|
||||||
_logger.LogInformation("C# HTTP trigger function processed a request.");
|
|
||||||
|
|
||||||
var response = req.CreateResponse(HttpStatusCode.OK);
|
|
||||||
response.Headers.Add("Content-Type", "text/plain; charset=utf-8");
|
|
||||||
|
|
||||||
response.WriteString("Welcome to Azure Functions!");
|
|
||||||
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue