Skip to content

Commit f75d4df

Browse files
authored
Removed references to FromServices attribute (#8528)
1 parent a38b205 commit f75d4df

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/QueryExtension.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using HotChocolate.Execution;
22
using HotChocolate.Types;
3-
using Microsoft.AspNetCore.Mvc;
43

54
namespace HotChocolate.AspNetCore.Tests.Utilities;
65

@@ -10,7 +9,7 @@ public class QueryExtension
109
public long Time(Schema schema)
1110
=> schema.CreatedAt.Ticks;
1211

13-
public bool Evict([FromServices] IRequestExecutorProvider executorResolver, ISchemaDefinition schema)
12+
public bool Evict(IRequestExecutorProvider executorResolver, ISchemaDefinition schema)
1413
{
1514
((RequestExecutorManager)executorResolver).EvictRequestExecutor(schema.Name);
1615
return true;

src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ServiceParameterExpressionBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ namespace HotChocolate.Resolvers.Expressions.Parameters;
66

77
/// <summary>
88
/// Builds parameter expressions for resolver level dependency injection.
9-
/// Parameters need to be annotated with the <see cref="ServiceAttribute"/> or the
10-
/// <c>FromServicesAttribute</c>.
9+
/// Parameters need to be annotated with the <see cref="ServiceAttribute"/>.
1110
/// </summary>
1211
internal sealed class ServiceParameterExpressionBuilder
1312
: IParameterExpressionBuilder

0 commit comments

Comments
 (0)