Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds IExecutable abstraction to core
- Loading branch information
Showing
27 changed files
with
199 additions
and
231 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace HotChocolate | ||
{ | ||
public interface IExecutable | ||
{ | ||
ValueTask<object> ExecuteAsync(CancellationToken cancellationToken); | ||
|
||
string Print(); | ||
} | ||
} |
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,11 @@ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace HotChocolate | ||
{ | ||
public interface IExecutable<T> : IExecutable | ||
{ | ||
new ValueTask<IReadOnlyList<T>> ExecuteAsync(CancellationToken cancellationToken); | ||
} | ||
} |
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
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
18 changes: 0 additions & 18 deletions
18
...xecution.Tests/Utilities/__snapshots__/OperationCompilerTests.Field_Based_Optimizers.snap
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
.../__snapshots__/OperationCompilerTests.Object_Field_Visibility_Is_Correctly_Inherited.snap
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
..._snapshots__/OperationCompilerTests.Object_Field_Visibility_Is_Correctly_Inherited_2.snap
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
..._snapshots__/OperationCompilerTests.Object_Field_Visibility_Is_Correctly_Inherited_3.snap
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...ion.Tests/Utilities/__snapshots__/OperationCompilerTests.Prepare_Fragment_Definition.snap
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...ecution.Tests/Utilities/__snapshots__/OperationCompilerTests.Prepare_Inline_Fragment.snap
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
.../test/Execution.Tests/Utilities/__snapshots__/OperationCompilerTests.Reuse_Selection.snap
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...tilities/__snapshots__/ResultHelperTests.BuildResult_SimpleResultSet_SnapshotMatches.snap
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...s__/VariableCoercionHelperTests.Coerce_Nullable_ReviewInput_Variable_With_Dictionary.snap
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
.../VariableCoercionHelperTests.Coerce_Nullable_ReviewInput_Variable_With_Review_Object.snap
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...lperTests.Coerce_Nullable_String_Variable_With_Default_Where_Plain_Value_Is_Provided.snap
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...ableCoercionHelperTests.Error_When_Input_Field_Has_Different_Properties_Than_Defined.snap
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...ots__/VariableCoercionHelperTests.Error_When_PlainValue_Is_Null_On_Non_Null_Variable.snap
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
.../VariableCoercionHelperTests.Error_When_PlainValue_Type_Does_Not_Match_Variable_Type.snap
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...napshots__/VariableCoercionHelperTests.Error_When_Value_Is_Null_On_Non_Null_Variable.snap
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.