Skip to content

Commit 4be35be

Browse files
tobias-tenglermichaelstaib
authored andcommitted
Make TypeInterceptor.IsEnabled public (#8149)
1 parent fdf48d5 commit 4be35be

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/HotChocolate/Core/src/Fetching/DataLoaderRootFieldTypeInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal override void InitializeContext(
2626
_services = context.Services.GetService<IApplicationServiceProvider>();
2727
}
2828

29-
internal override bool IsEnabled(IDescriptorContext context)
29+
public override bool IsEnabled(IDescriptorContext context)
3030
=> context.Options.PublishRootFieldPagesToPromiseCache;
3131

3232
public override void OnAfterResolveRootType(

src/HotChocolate/Core/src/Types/Configuration/TypeInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public abstract class TypeInterceptor
2222
/// </summary>
2323
internal virtual uint Position => _defaultPosition;
2424

25-
internal virtual bool IsEnabled(IDescriptorContext context) => true;
25+
public virtual bool IsEnabled(IDescriptorContext context) => true;
2626

2727
internal virtual bool IsMutationAggregator(IDescriptorContext context) => false;
2828

src/HotChocolate/Core/src/Types/SemanticNonNullTypeInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal sealed class SemanticNonNullTypeInterceptor : TypeInterceptor
1616
{
1717
private ITypeInspector _typeInspector = null!;
1818

19-
internal override bool IsEnabled(IDescriptorContext context)
19+
public override bool IsEnabled(IDescriptorContext context)
2020
=> context.Options.EnableSemanticNonNull;
2121

2222
internal override void InitializeContext(

src/HotChocolate/CostAnalysis/src/CostAnalysis/CostTypeInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private readonly ImmutableArray<string> _offsetSizedFields
3232

3333
internal override uint Position => int.MaxValue;
3434

35-
internal override bool IsEnabled(IDescriptorContext context)
35+
public override bool IsEnabled(IDescriptorContext context)
3636
=> context.Services.GetRequiredService<CostOptions>().ApplyCostDefaults;
3737

3838
internal override void InitializeContext(

0 commit comments

Comments
 (0)