File tree Expand file tree Collapse file tree
src/backend/Sudoku.McpServer/Tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
55## Commands
66
77### Build & Run
8- ``` bashV
8+ ``` bash
99# Build entire solution
1010dotnet build
1111
Original file line number Diff line number Diff line change @@ -20,9 +20,15 @@ public sealed class ApplicationInsightsTools
2020 public ApplicationInsightsTools ( LogsQueryClient logsClient , IConfiguration config )
2121 {
2222 _logsClient = logsClient ;
23- _workspaceId = config [ "AppInsights:WorkspaceId" ]
24- ?? throw new InvalidOperationException (
25- "AppInsights:WorkspaceId is required. Set it in app settings (Log Analytics workspace GUID)." ) ;
23+
24+ var workspaceId = config [ "AppInsights:WorkspaceId" ] ;
25+ if ( string . IsNullOrWhiteSpace ( workspaceId ) )
26+ {
27+ throw new InvalidOperationException (
28+ "AppInsights:WorkspaceId is required and cannot be empty. Set it in app settings (Log Analytics workspace GUID)." ) ;
29+ }
30+
31+ _workspaceId = workspaceId ;
2632 }
2733
2834 // -------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments