From d476c8b77add37ccdbc0b74badbd1454d534e7a3 Mon Sep 17 00:00:00 2001 From: TBalaji-MSFT <129296857+TPavanBalaji@users.noreply.github.com> Date: Fri, 10 Jan 2025 12:33:52 +0530 Subject: [PATCH] (AzureCXP) fixes MicrosoftDocs/azure-docs#360937 Updated line no: 100, 102 From: GlobalState.Globals To: GlobalState.Default --- .../kusto/api/netfx/kusto-language-define-schemas.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-explorer/kusto/api/netfx/kusto-language-define-schemas.md b/data-explorer/kusto/api/netfx/kusto-language-define-schemas.md index 07b0b21ee9..2adeab4b2f 100644 --- a/data-explorer/kusto/api/netfx/kusto-language-define-schemas.md +++ b/data-explorer/kusto/api/netfx/kusto-language-define-schemas.md @@ -97,9 +97,9 @@ For more examples, see [SymbolLoader](https://github.com/mattwar/Kusto.Toolkit/b ```csharp // Option 1: Add the cluster as the default with a specified default database. - var globalsWithMyDefaultCluster = GlobalState.Globals.WithCluster(mycluster).WithDatabase(mydb); + var globalsWithMyDefaultCluster = GlobalState.Default.WithCluster(mycluster).WithDatabase(mydb); // Option 2: Add the cluster to the list of known clusters. - var globalsWithMyClusterAdded = GlobalState.Globals.AddOrReplaceCluster(mycluster); + var globalsWithMyClusterAdded = GlobalState.Default.AddOrReplaceCluster(mycluster); ``` 1. Use the relevant globals in the `ParseAndAnalyze` method to [parse a query with semantic analysis](kusto-language-parse-queries.md#parse-a-query-with-semantic-analysis).