Skip to content

Commit

Permalink
Do not set a default value of CancellationToken. This allows user to …
Browse files Browse the repository at this point in the history
…set a cancellationtoken on the callsettings instead. Fixes #360
  • Loading branch information
AnashOommen committed Mar 14, 2022
1 parent 38d6adb commit 38c3160
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/V10/ServiceHelperMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public virtual Task<SearchStreamStream> SearchStreamAsync(
{
var responseStream = searchStream.GetResponseStream();
bool emptyResult = true;
while (await responseStream.MoveNextAsync(CancellationToken.None))
while (await responseStream.MoveNextAsync())
{
emptyResult = false;
SearchGoogleAdsStreamResponse resp = responseStream.Current;
Expand Down
2 changes: 1 addition & 1 deletion src/V8/ServiceHelperMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public virtual Task<SearchStreamStream> SearchStreamAsync(
{
var responseStream = searchStream.GetResponseStream();
bool emptyResult = true;
while (await responseStream.MoveNextAsync(CancellationToken.None))
while (await responseStream.MoveNextAsync())
{
emptyResult = false;
SearchGoogleAdsStreamResponse resp = responseStream.Current;
Expand Down
2 changes: 1 addition & 1 deletion src/V9/ServiceHelperMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public virtual Task<SearchStreamStream> SearchStreamAsync(
{
var responseStream = searchStream.GetResponseStream();
bool emptyResult = true;
while (await responseStream.MoveNextAsync(CancellationToken.None))
while (await responseStream.MoveNextAsync())
{
emptyResult = false;
SearchGoogleAdsStreamResponse resp = responseStream.Current;
Expand Down

0 comments on commit 38c3160

Please sign in to comment.