From 0ef61d49077f22448f570822ef6ae99d896bd87a Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Thu, 18 Jul 2024 12:51:54 -0400 Subject: [PATCH 1/3] actually add event listener --- src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs | 2 ++ src/UploadIndexStage1/Program.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs b/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs index 2b033b2..f8e97d3 100644 --- a/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs +++ b/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs @@ -54,6 +54,8 @@ private void ExecuteCore() StorageAccount = "https://" + StorageAccount + ".blob.core.windows.net"; } + using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger(); + DefaultAzureCredential credential; DefaultAzureCredentialOptions credentialoptions; diff --git a/src/UploadIndexStage1/Program.cs b/src/UploadIndexStage1/Program.cs index 9bdf000..cb5be69 100644 --- a/src/UploadIndexStage1/Program.cs +++ b/src/UploadIndexStage1/Program.cs @@ -6,6 +6,7 @@ using System.Text; using System.Threading.Tasks; using Azure.Core; +using Azure.Core.Diagnostics; using Azure.Identity; using Azure.Storage.Blobs; using Azure.Storage.Blobs.Models; @@ -65,6 +66,8 @@ static async Task Main(string[] args) storageAccount = "https://" + storageAccount + ".blob.core.windows.net"; } + using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger(); + DefaultAzureCredential credential; DefaultAzureCredentialOptions credentialoptions; From d42c59b7e6f9515747e559b644609b9e1438afe7 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Thu, 18 Jul 2024 12:54:46 -0400 Subject: [PATCH 2/3] add missing using --- .../DownloadStage1Index.cs | 1 + src/index/repositories.props | 34 ------------------- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs b/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs index f8e97d3..588026c 100644 --- a/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs +++ b/src/Microsoft.SourceIndexer.Tasks/DownloadStage1Index.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Text; using Azure; +using Azure.Core.Diagnostics; using Azure.Identity; using Azure.Storage.Blobs; using Azure.Storage.Blobs.Models; diff --git a/src/index/repositories.props b/src/index/repositories.props index a4b2f91..aefa2c1 100644 --- a/src/index/repositories.props +++ b/src/index/repositories.props @@ -14,32 +14,10 @@ dotnet-runtime https://github.com/dotnet/runtime - - https://github.com/dotnet/winforms - - $(ArcadeBuildCmd) - - main - dotnet-wpf https://github.com/dotnet/wpf - - https://github.com/dotnet/iot - - $(ArcadeBuildCmd) - - main - - - https://github.com/dotnet/msbuild - main - true - - $(ArcadeBuildCmd) - - dotnet-machinelearning https://github.com/dotnet/machinelearning @@ -52,18 +30,6 @@ dotnet-aspnetcore https://github.com/dotnet/aspnetcore - - https://github.com/dotnet/performance - - $(ArcadeBuildCmd) -projects src\benchmarks\micro\MicroBenchmarks.sln - - - - https://github.com/dotnet/sdk - - $(ArcadeBuildCmd) -projects src\benchmarks\micro\MicroBenchmarks.sln - - dotnet-aspire https://github.com/dotnet/aspire From c74b0db64e916f896c3f4cea5293c04da1c08229 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Thu, 18 Jul 2024 13:01:33 -0400 Subject: [PATCH 3/3] re-add stuff that should be there --- src/index/repositories.props | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/index/repositories.props b/src/index/repositories.props index aefa2c1..a4b2f91 100644 --- a/src/index/repositories.props +++ b/src/index/repositories.props @@ -14,10 +14,32 @@ dotnet-runtime https://github.com/dotnet/runtime + + https://github.com/dotnet/winforms + + $(ArcadeBuildCmd) + + main + dotnet-wpf https://github.com/dotnet/wpf + + https://github.com/dotnet/iot + + $(ArcadeBuildCmd) + + main + + + https://github.com/dotnet/msbuild + main + true + + $(ArcadeBuildCmd) + + dotnet-machinelearning https://github.com/dotnet/machinelearning @@ -30,6 +52,18 @@ dotnet-aspnetcore https://github.com/dotnet/aspnetcore + + https://github.com/dotnet/performance + + $(ArcadeBuildCmd) -projects src\benchmarks\micro\MicroBenchmarks.sln + + + + https://github.com/dotnet/sdk + + $(ArcadeBuildCmd) -projects src\benchmarks\micro\MicroBenchmarks.sln + + dotnet-aspire https://github.com/dotnet/aspire