Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Dec 10, 2024
1 parent 8f6ad45 commit 1115ca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/Microsoft.AutoGen/Agents/AgentBaseExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static class AgentBaseExtensions

public static Activity? ExtractActivity(this AgentBase agent, string activityName, MapField<string, CloudEventAttributeValue> metadata)
{
return ExtractActivity(agent, activityName, metadata.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.CeString));
return ExtractActivity(agent, activityName, metadata.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.CeString));
}

/// <summary>
Expand Down
7 changes: 3 additions & 4 deletions dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
// AgentRuntime.cs

using System.Diagnostics;
using Google.Protobuf.Collections;
using Microsoft.AutoGen.Abstractions;
using static Microsoft.AutoGen.Abstractions.CloudEvent.Types;
using Microsoft.Extensions.Logging;

using Google.Protobuf.Collections;
using static Microsoft.AutoGen.Abstractions.CloudEvent.Types;

namespace Microsoft.AutoGen.Agents;

Expand Down Expand Up @@ -51,7 +50,7 @@ public void Update(RpcRequest request, Activity? activity = null)
}
public void Update(CloudEvent cloudEvent, Activity? activity = null)
{
DistributedContextPropagator.Inject(activity, cloudEvent.Attributes, static (carrier, key, value) =>
DistributedContextPropagator.Inject(activity, cloudEvent.Attributes, static (carrier, key, value) =>
((MapField<string, CloudEventAttributeValue>)carrier!)[key].CeString = value);
}
public async ValueTask SendResponseAsync(RpcRequest request, RpcResponse response, CancellationToken cancellationToken = default)
Expand Down

0 comments on commit 1115ca7

Please sign in to comment.