mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Update analyzers for .NET 10 SDK (#2611)
This commit is contained in:
@@ -41,8 +41,8 @@ public sealed class EdgeConnection : IEquatable<EdgeConnection>
|
||||
/// contains duplicate values.</exception>
|
||||
public static EdgeConnection CreateChecked(List<string> sourceIds, List<string> sinkIds)
|
||||
{
|
||||
HashSet<string> sourceSet = new(Throw.IfNull(sourceIds));
|
||||
HashSet<string> sinkSet = new(Throw.IfNull(sinkIds));
|
||||
HashSet<string> sourceSet = [.. Throw.IfNull(sourceIds)];
|
||||
HashSet<string> sinkSet = [.. Throw.IfNull(sinkIds)];
|
||||
|
||||
if (sourceSet.Count != sourceIds.Count)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ internal sealed class FanInEdgeState
|
||||
public FanInEdgeState(FanInEdgeData fanInEdge)
|
||||
{
|
||||
this.SourceIds = fanInEdge.SourceIds.ToArray();
|
||||
this.Unseen = new(this.SourceIds);
|
||||
this.Unseen = [.. this.SourceIds];
|
||||
|
||||
this._pendingMessages = [];
|
||||
}
|
||||
@@ -40,7 +40,7 @@ internal sealed class FanInEdgeState
|
||||
if (this.Unseen.Count == 0)
|
||||
{
|
||||
List<PortableMessageEnvelope> takenMessages = Interlocked.Exchange(ref this._pendingMessages, []);
|
||||
this.Unseen = new(this.SourceIds);
|
||||
this.Unseen = [.. this.SourceIds];
|
||||
|
||||
if (takenMessages.Count == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user