diff --git a/ServerlessLibraryFunctionApp/ServerLessLibraryFunctionApp.csproj b/ServerlessLibraryFunctionApp/ServerLessLibraryFunctionApp.csproj index c068bff..7ef8425 100644 --- a/ServerlessLibraryFunctionApp/ServerLessLibraryFunctionApp.csproj +++ b/ServerlessLibraryFunctionApp/ServerLessLibraryFunctionApp.csproj @@ -1,11 +1,11 @@ - netstandard2.0 - v2 + netcoreapp3.1 + v3 - - + + diff --git a/ServerlessLibraryFunctionApp/UpdateCounts.cs b/ServerlessLibraryFunctionApp/UpdateCounts.cs index aa9b081..d3ae45b 100644 --- a/ServerlessLibraryFunctionApp/UpdateCounts.cs +++ b/ServerlessLibraryFunctionApp/UpdateCounts.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using Microsoft.WindowsAzure.Storage; @@ -15,7 +16,7 @@ namespace ServerlessLibraryFunctionApp [FunctionName("UpdateCounts")] [Singleton] - public static async void Run([QueueTrigger("slitemstats")]string myQueueItemJson, [Table("slitemstats")] CloudTable table, ILogger log) + public static async Task Run([QueueTrigger("slitemstats")]string myQueueItemJson, [Table("slitemstats")] CloudTable table, ILogger log) { var payload = JsonConvert.DeserializeObject(((dynamic)myQueueItemJson)); string id = payload.id.ToString();