From 0a8917bf9a57e5597b6f8c4eb1fd52f975fd6bc9 Mon Sep 17 00:00:00 2001 From: "Jeffrey T. Fritz" Date: Fri, 8 Dec 2023 10:21:20 -0500 Subject: [PATCH] Removed TestQueue (#347) --- src/TagzApp.TestQueue/Program.cs | 29 ------------------- .../TagzApp.TestQueue.csproj | 19 ------------ 2 files changed, 48 deletions(-) delete mode 100644 src/TagzApp.TestQueue/Program.cs delete mode 100644 src/TagzApp.TestQueue/TagzApp.TestQueue.csproj diff --git a/src/TagzApp.TestQueue/Program.cs b/src/TagzApp.TestQueue/Program.cs deleted file mode 100644 index bfc63120..00000000 --- a/src/TagzApp.TestQueue/Program.cs +++ /dev/null @@ -1,29 +0,0 @@ -// See https://aka.ms/new-console-template for more information -using Azure.Storage.Queues; -using Microsoft.Extensions.Configuration; -using System.ComponentModel.DataAnnotations; -using System.Text.Json; -Console.WriteLine("Hello, World!"); - -const string ConnectionString = "DefaultEndpointsProtocol=https;AccountName=dotnetconf;AccountKey=XcBjXGdyMcoqyB29cC+QLfHhuEhGCJurpCYwRI1I78958t5rRBrDS8fgftMPe4xKwnVpgz8Yu2Of9AluOUtqfA==;EndpointSuffix=core.windows.net"; - -var client = new QueueClient(ConnectionString, "tagzapp-content"); - -var newMessage = new Content -{ - Author = new Creator - { - DisplayName = "Test User", - ProfileImageUri = new Uri("https://bing.com"), - ProfileUri = new Uri("https://bing.com"), - }, - Provider = "WEBSITE", - ProviderId = Guid.NewGuid().ToString(), - SourceUri = new Uri("https://bing.com"), - Text = "This is a test message", - Timestamp = DateTimeOffset.UtcNow, -}; - -var msgJson = JsonSerializer.Serialize(newMessage); - -await client.SendMessageAsync(msgJson); diff --git a/src/TagzApp.TestQueue/TagzApp.TestQueue.csproj b/src/TagzApp.TestQueue/TagzApp.TestQueue.csproj deleted file mode 100644 index cf6c9cec..00000000 --- a/src/TagzApp.TestQueue/TagzApp.TestQueue.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - - - - - - - - - -