From 0d03628898c918ff7e472062b65f72b4f3c6520f Mon Sep 17 00:00:00 2001 From: Derek Christensen Date: Thu, 25 Oct 2018 00:32:00 -0600 Subject: [PATCH] Upgrade project to Azure Functions v2 RTM --- .../AllReady.Processing/AllReady.Processing.csproj | 8 +++++--- AllReady.Processing/AllReady.Processing/QueueTest.cs | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/AllReady.Processing/AllReady.Processing/AllReady.Processing.csproj b/AllReady.Processing/AllReady.Processing/AllReady.Processing.csproj index 0715787..50c99ad 100644 --- a/AllReady.Processing/AllReady.Processing/AllReady.Processing.csproj +++ b/AllReady.Processing/AllReady.Processing/AllReady.Processing.csproj @@ -1,9 +1,11 @@ - + - net461 + netstandard2.0 + v2 - + + diff --git a/AllReady.Processing/AllReady.Processing/QueueTest.cs b/AllReady.Processing/AllReady.Processing/QueueTest.cs index dac8cde..e1f34d7 100644 --- a/AllReady.Processing/AllReady.Processing/QueueTest.cs +++ b/AllReady.Processing/AllReady.Processing/QueueTest.cs @@ -1,6 +1,6 @@ using System; using Microsoft.Azure.WebJobs; -using Microsoft.Azure.WebJobs.Host; +using Microsoft.Extensions.Logging; namespace AllReady.Processing { @@ -10,9 +10,9 @@ public static class QueueTest // local storage emulator. [FunctionName("QueueTest")] - public static void Run([QueueTrigger("queue-test", Connection = "")]string item, TraceWriter log) + public static void Run([QueueTrigger("queue-test")]string item, ILogger log) { - log.Info($"A message was dequeued from the queue-test queue: {item}"); + log.LogInformation($"A message was dequeued from the queue-test queue: {item}"); } } }