-
-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced Subscribe Resolver for IAsyncEnumerable<T> (#1262)
- Loading branch information
1 parent
293058b
commit c5d4900
Showing
55 changed files
with
1,573 additions
and
675 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace HotChocolate | ||
{ | ||
[AttributeUsage(AttributeTargets.Parameter)] | ||
public sealed class EventMessageAttribute | ||
: Attribute | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,27 +1,8 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using System.Collections.Generic; | ||
|
||
namespace HotChocolate.Execution | ||
{ | ||
public interface IResponseStream | ||
: IDisposable | ||
public interface IResponseStream : IAsyncEnumerable<IReadOnlyQueryResult> | ||
{ | ||
/// <summary> | ||
/// Defines if this stream is completed. | ||
/// A completed response stream does not yield any new results. | ||
/// </summary> | ||
bool IsCompleted { get; } | ||
|
||
/// <summary> | ||
/// Reads the next result from the current response stream. | ||
/// </summary> | ||
Task<IReadOnlyQueryResult> ReadAsync(); | ||
|
||
/// <summary> | ||
/// Reads the next result from the current response stream. | ||
/// </summary> | ||
Task<IReadOnlyQueryResult> ReadAsync( | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace HotChocolate.Execution | ||
{ | ||
public static class WellKnownContextData | ||
{ | ||
public const string Principal = "HotChocolate.Execution.Principal"; | ||
public const string EventMessage = "HotChocolate.Execution.EventMessage"; | ||
} | ||
} |
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
Oops, something went wrong.