mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Clean up a few ifdefs (#1016)
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
using System;
|
||||
#if NET9_0_OR_GREATER
|
||||
#if NET
|
||||
using System.Buffers;
|
||||
#endif
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
|
||||
#if NET9_0_OR_GREATER
|
||||
#if NET
|
||||
using System.Text;
|
||||
#endif
|
||||
using System.Text.Json;
|
||||
|
||||
+1
-1
@@ -118,7 +118,7 @@ internal abstract class DeclarativeActionExecutor : Executor<ActionExecutorResul
|
||||
$"""
|
||||
STATE: {this.GetType().Name} [{this.Id}]
|
||||
NAME: {targetPath}
|
||||
VALUE:{valuePosition}{result.Format()} ({result.GetType().Name})
|
||||
VALUE:{valuePosition}{resultValue} ({result.GetType().Name})
|
||||
""");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ internal static class SampleEnvironment
|
||||
public static bool HasShutdownStarted
|
||||
=> SystemEnvironment.HasShutdownStarted;
|
||||
|
||||
#if NET9_0_OR_GREATER
|
||||
#if NET
|
||||
public static int ProcessId
|
||||
=> SystemEnvironment.ProcessId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user