Pass CancellationToken in JObject and JConstructor.WriteToAsync
Missed by mistake.
This commit is contained in:
@@ -47,7 +47,7 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
for (int i = 0; i < _values.Count; i++)
|
||||
{
|
||||
await _values[i].WriteToAsync(writer, converters).ConfigureAwait(false);
|
||||
await _values[i].WriteToAsync(writer, cancellationToken, converters).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
await writer.WriteEndConstructorAsync(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
for (int i = 0; i < _properties.Count; i++)
|
||||
{
|
||||
await _properties[i].WriteToAsync(writer, converters).ConfigureAwait(false);
|
||||
await _properties[i].WriteToAsync(writer, cancellationToken, converters).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
await writer.WriteEndObjectAsync(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user