From f747d4cea9187bde61e890fb1cf7ef26c4ea5d4a Mon Sep 17 00:00:00 2001 From: Daniel Wust Date: Mon, 9 Oct 2023 16:26:07 +0200 Subject: [PATCH 1/2] Make CustomOptionsFlags public --- src/HotChocolate/Core/src/Execution/Processing/Selection.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs index 60a5296db52..53f969c2698 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs @@ -88,7 +88,7 @@ protected Selection(Selection selection) /// public int Id { get; } - internal CustomOptionsFlags CustomOptions { get; private set; } + public CustomOptionsFlags CustomOptions { get; private set; } /// public SelectionExecutionStrategy Strategy { get; private set; } @@ -320,7 +320,7 @@ internal void MarkAsStream(long ifCondition) _flags |= Flags.Stream; } - internal void SetOption(CustomOptionsFlags customOptions) + public void SetOption(CustomOptionsFlags customOptions) { if ((_flags & Flags.Sealed) == Flags.Sealed) { @@ -390,7 +390,7 @@ private enum Flags } [Flags] - internal enum CustomOptionsFlags : byte + public enum CustomOptionsFlags : byte { None = 0, Option1 = 1, From 0cb8c791859dc5ea045d64489a1785ff2409c0b3 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Mon, 9 Oct 2023 18:29:04 +0200 Subject: [PATCH 2/2] Added more options --- src/HotChocolate/Core/src/Execution/Processing/Selection.cs | 4 +++- .../Core/src/Types/Execution/Processing/ISelection.cs | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs index 53f969c2698..774895a6d63 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs @@ -397,7 +397,9 @@ public enum CustomOptionsFlags : byte Option2 = 2, Option3 = 4, Option4 = 8, - Option5 = 16 + Option5 = 16, + Option6 = 32, + Option7 = 64 } internal sealed class Sealed : Selection diff --git a/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs b/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs index ad6ebafc658..d1ff0aabfd7 100644 --- a/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs +++ b/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs @@ -1,6 +1,5 @@ #nullable enable -using System; using System.Collections.Generic; using HotChocolate.Language; using HotChocolate.Resolvers;