Skip to content

Commit 74ddf1d

Browse files
committed
Make list immutable for app logs query client
1 parent 3683f31 commit 74ddf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/Azure.Mcp.Tools.ApplicationInsights/src/Services/AppLogsQueryClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ public class AppLogsQueryClient(LogsQueryClient logsQueryClient) : IAppLogsQuery
7777
};
7878
}).ToList(); // Use ToList to force conversion to happen now, not on demand
7979

80-
return rows;
80+
return rows.AsReadOnly();
8181
}
8282
}

0 commit comments

Comments
 (0)