From 10f98463d12d00536f14b5c03deca1401b86825f Mon Sep 17 00:00:00 2001 From: Kosta Petan Date: Tue, 3 Dec 2024 16:36:59 +0000 Subject: [PATCH] revert namespace change --- .../DevTeam.Backend/Services/GithubWebHookProcessor.cs | 1 - dotnet/src/Microsoft.AutoGen/Abstractions/IAgentBase.cs | 1 - dotnet/src/Microsoft.AutoGen/Abstractions/IAgentRuntime.cs | 1 - dotnet/src/Microsoft.AutoGen/Abstractions/IAgentWorker.cs | 2 -- .../src/Microsoft.AutoGen/Abstractions/MessageExtensions.cs | 1 - dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs | 1 - dotnet/src/Microsoft.AutoGen/Agents/AgentBaseExtensions.cs | 3 ++- dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs | 4 ++-- dotnet/src/Microsoft.AutoGen/Agents/Services/AgentWorker.cs | 1 - .../Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs | 1 - .../src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcGateway.cs | 1 - dotnet/src/Microsoft.AutoGen/Agents/Services/IGateway.cs | 1 - 12 files changed, 4 insertions(+), 14 deletions(-) diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs index 14a8f94c9910..54ef97e059b2 100644 --- a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs +++ b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs @@ -10,7 +10,6 @@ using Octokit.Webhooks.Events.IssueComment; using Octokit.Webhooks.Events.Issues; using Octokit.Webhooks.Models; -using CloudNative.CloudEvents.V1; namespace DevTeam.Backend; diff --git a/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentBase.cs b/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentBase.cs index 56635d3c5095..ee7b9e74583c 100644 --- a/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentBase.cs +++ b/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentBase.cs @@ -2,7 +2,6 @@ // IAgentBase.cs using Google.Protobuf; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Abstractions; diff --git a/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentRuntime.cs b/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentRuntime.cs index 08d0f9e9f47f..6b3d4f98cdb2 100644 --- a/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentRuntime.cs +++ b/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentRuntime.cs @@ -2,7 +2,6 @@ // IAgentRuntime.cs using System.Diagnostics; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Abstractions; diff --git a/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentWorker.cs b/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentWorker.cs index 0c5ca53670ec..04517cd112dc 100644 --- a/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentWorker.cs +++ b/dotnet/src/Microsoft.AutoGen/Abstractions/IAgentWorker.cs @@ -1,7 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // IAgentWorker.cs -using CloudNative.CloudEvents.V1; - namespace Microsoft.AutoGen.Abstractions; public interface IAgentWorker diff --git a/dotnet/src/Microsoft.AutoGen/Abstractions/MessageExtensions.cs b/dotnet/src/Microsoft.AutoGen/Abstractions/MessageExtensions.cs index cbea22917051..2c8f5d053063 100644 --- a/dotnet/src/Microsoft.AutoGen/Abstractions/MessageExtensions.cs +++ b/dotnet/src/Microsoft.AutoGen/Abstractions/MessageExtensions.cs @@ -3,7 +3,6 @@ using Google.Protobuf; using Google.Protobuf.WellKnownTypes; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Abstractions; diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs b/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs index 3730c7db06ac..52a94aad1e42 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs @@ -9,7 +9,6 @@ using Google.Protobuf; using Microsoft.AutoGen.Abstractions; using Microsoft.Extensions.Logging; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Agents; diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentBaseExtensions.cs b/dotnet/src/Microsoft.AutoGen/Agents/AgentBaseExtensions.cs index bbb4edf687f1..741e24772cb9 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/AgentBaseExtensions.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/AgentBaseExtensions.cs @@ -3,6 +3,7 @@ using System.Diagnostics; using Google.Protobuf.Collections; +using static Microsoft.AutoGen.Abstractions.CloudEvent.Types; namespace Microsoft.AutoGen.Agents; @@ -58,7 +59,7 @@ public static class AgentBaseExtensions return activity; } - public static Activity? ExtractActivity(this AgentBase agent, string activityName, MapField metadata) + public static Activity? ExtractActivity(this AgentBase agent, string activityName, MapField metadata) { return ExtractActivity(agent, activityName, metadata.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.CeString)); } diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs b/dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs index 8ad58f0530e5..28b875936657 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs @@ -3,10 +3,10 @@ using System.Diagnostics; using Microsoft.AutoGen.Abstractions; +using static Microsoft.AutoGen.Abstractions.CloudEvent.Types; using Microsoft.Extensions.Logging; -using CloudNative.CloudEvents.V1; + using Google.Protobuf.Collections; -using static CloudNative.CloudEvents.V1.CloudEvent.Types; namespace Microsoft.AutoGen.Agents; diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Services/AgentWorker.cs b/dotnet/src/Microsoft.AutoGen/Agents/Services/AgentWorker.cs index 44d701b00961..f9a5050534c8 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/Services/AgentWorker.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/Services/AgentWorker.cs @@ -8,7 +8,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Agents; diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs b/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs index b973af138c7a..48f07573430d 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs @@ -10,7 +10,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Agents; diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcGateway.cs b/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcGateway.cs index 3e3d05caabe1..ab24a0e15fe5 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcGateway.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcGateway.cs @@ -6,7 +6,6 @@ using Microsoft.AutoGen.Abstractions; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Agents; diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Services/IGateway.cs b/dotnet/src/Microsoft.AutoGen/Agents/Services/IGateway.cs index 022013a7fe12..539ec3eca435 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/Services/IGateway.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/Services/IGateway.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // IGateway.cs using Microsoft.AutoGen.Abstractions; -using CloudNative.CloudEvents.V1; namespace Microsoft.AutoGen.Agents;