Skip to content

Commit

Permalink
Make CustomOptionsFlags on Selections public (#6587)
Browse files Browse the repository at this point in the history
  • Loading branch information
dawust authored Oct 9, 2023
1 parent b7bb6cc commit b741f5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/HotChocolate/Core/src/Execution/Processing/Selection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected Selection(Selection selection)
/// <inheritdoc />
public int Id { get; }

internal CustomOptionsFlags CustomOptions { get; private set; }
public CustomOptionsFlags CustomOptions { get; private set; }

/// <inheritdoc />
public SelectionExecutionStrategy Strategy { get; private set; }
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -390,14 +390,16 @@ private enum Flags
}

[Flags]
internal enum CustomOptionsFlags : byte
public enum CustomOptionsFlags : byte
{
None = 0,
Option1 = 1,
Option2 = 2,
Option3 = 4,
Option4 = 8,
Option5 = 16
Option5 = 16,
Option6 = 32,
Option7 = 64
}

internal sealed class Sealed : Selection
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#nullable enable

using System;
using System.Collections.Generic;
using HotChocolate.Language;
using HotChocolate.Resolvers;
Expand Down

0 comments on commit b741f5f

Please sign in to comment.