From 8c2e24583e093f398d8475575497b96e239cb935 Mon Sep 17 00:00:00 2001 From: jonasessen Date: Fri, 27 Mar 2026 12:52:25 +0100 Subject: [PATCH] Fix typos and replace Console.WriteLine with Debug.WriteLine --- src/Linq2GraphQL.Client/GraphBaseExecute.cs | 6 +++--- src/Linq2GraphQL.Client/GraphClient.cs | 4 ++-- src/Linq2GraphQL.Client/QueryNode.cs | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Linq2GraphQL.Client/GraphBaseExecute.cs b/src/Linq2GraphQL.Client/GraphBaseExecute.cs index dbc3454d..16cf5c5b 100644 --- a/src/Linq2GraphQL.Client/GraphBaseExecute.cs +++ b/src/Linq2GraphQL.Client/GraphBaseExecute.cs @@ -14,7 +14,7 @@ public abstract class GraphBaseExecute protected readonly Expression> selector; private readonly SemaphoreSlim _lock = new(1, 1); - private bool intialized; + private bool initialized; private GraphQLSchema schema; public GraphBaseExecute(GraphClient client, OperationType operationType, QueryNode queryNode, @@ -33,12 +33,12 @@ private async Task InitQueryAsync() await _lock.WaitAsync(); try { - if (!intialized) + if (!initialized) { schema = await client.GetSchemaForSafeModeAsync(); QueryNode.SetAllUniqueVariableNames(); QueryNode.AddPrimitiveChildren(true, schema); - intialized = true; + initialized = true; } } diff --git a/src/Linq2GraphQL.Client/GraphClient.cs b/src/Linq2GraphQL.Client/GraphClient.cs index e5f2925d..4c1314ea 100644 --- a/src/Linq2GraphQL.Client/GraphClient.cs +++ b/src/Linq2GraphQL.Client/GraphClient.cs @@ -67,9 +67,9 @@ public async Task GetSchemaForSafeModeAsync() return null; } - var cackeKey = "Linq2GraphQL_Schema:" + HttpClient.BaseAddress; + var cacheKey = "Linq2GraphQL_Schema:" + HttpClient.BaseAddress; - return await cache.GetOrCreateAsync(cackeKey, async entry => + return await cache.GetOrCreateAsync(cacheKey, async entry => { var executor = new QueryExecutor(this); diff --git a/src/Linq2GraphQL.Client/QueryNode.cs b/src/Linq2GraphQL.Client/QueryNode.cs index e743bedf..ee4a92cc 100644 --- a/src/Linq2GraphQL.Client/QueryNode.cs +++ b/src/Linq2GraphQL.Client/QueryNode.cs @@ -1,4 +1,5 @@ -using System.Reflection; +using System.Diagnostics; +using System.Reflection; using Linq2GraphQL.Client.Schema; namespace Linq2GraphQL.Client; @@ -142,7 +143,7 @@ public void AddPrimitiveChildren(bool recursive, GraphQLSchema schema) } else { - Console.WriteLine( + Debug.WriteLine( $"Property: {propertyInfo.Name} Type: {Member.Name} was not present in active schema"); } }