-
-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move options to HotChocolate.Fusion project
- Loading branch information
1 parent
fb82609
commit b37b127
Showing
9 changed files
with
75 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/HotChocolate/Fusion/src/Core/Execution/FederatedQueryContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/HotChocolate/Fusion/src/Core/Execution/Pipeline/OperationExecutionMiddleware.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/HotChocolate/Fusion/src/Core/Metadata/FusionOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Diagnostics; | ||
|
||
namespace HotChocolate.Fusion.Metadata; | ||
|
||
public class FusionOptions : IFusionOptionsAccessor | ||
{ | ||
/// <summary> | ||
/// Gets or sets a value indicating whether the <c>Fusion</c> query plan | ||
/// can be requested on a per request basis. | ||
/// | ||
/// The default is <c>false</c>. | ||
/// </summary> | ||
public bool AllowFusionQueryPlan { get; set; } = false; | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether <c>Fusion</c> debugging | ||
/// information should be included in the response. | ||
/// | ||
/// The default value is <see cref="Debugger.IsAttached"/>. | ||
/// </summary> | ||
public bool IncludeFusionDebugInfo { get; set; } = Debugger.IsAttached; | ||
} |
2 changes: 1 addition & 1 deletion
2
...ecution/Options/IFusionOptionsAccessor.cs → ...c/Core/Metadata/IFusionOptionsAccessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters