Skip to content

Commit

Permalink
feat: update mock
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Sep 4, 2023
1 parent 02d28bc commit dc1a6e7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/csharp/ArmoniK.Api.Mock/Services/Results.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,20 @@ public override Task<GetResultResponse> GetResult(GetResultRequest request,
{
Result = MockResult,
});

/// <inheritdocs />
[Count]
public override async Task WatchResults(IAsyncStreamReader<WatchResultRequest> requestStream,
IServerStreamWriter<WatchResultResponse> responseStream,
ServerCallContext context)
{
await foreach (var _ in requestStream.ReadAllAsync())
{
await responseStream.WriteAsync(new WatchResultResponse
{
Status = ResultStatus.Unspecified,
})
.ConfigureAwait(false);
}
}
}

0 comments on commit dc1a6e7

Please sign in to comment.